wx.createAnimation的问题,用到旋转,内容就跑偏
发布于 6 年前 作者 laixia 18638 次浏览 来自 问答

<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 回复

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

修复没有

回到顶部