wx.createAnimation的问题,用到旋转,内容就跑偏

发布于 7 年前作者 laixia18738 次浏览最后编辑 7 年前来自 ask

<cover-view class=“c-view clearfix” style=“background:red;” animation=“{{animationData}}”>

   <cover-view class=“comment”>asdasdcover-view>

cover-view>

.c-view{

width: 225px;

height: 225px;

overflow-y: scroll;

}

.comment{

width: 225px;

background:yellow;

}

var animation = wx.createAnimation({

duration: 1000,

timingFunction: ‘ease’

})

animation.rotate(90).step()

this.setData({

animationData: animation.export()

})

代码是这样的

开发工具没问题  开始  结束都没问题  结果是

但是用真机测试就有问题

从开始做动画  黄色背景就跑到边上了

如果是view标签好像就可以,cover-view标签是这个状况 真机有问题

3 回复
tianping
tianping1 楼6 年前

你好,建议可以提供相关的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

heyong
heyong2 楼6 年前

我也遇到了这样的问题 使用view一切正常, 使用cover-view就会跑偏,rotate旋转不再正常 Android上则没有问题

xielei
xielei3 楼5 年前

修复没有