修改
bindtouchmove="buttonMove"
为
catchtouchmove="buttonMove"
使用touchmove监听滑动要更新视图层,导致动画卡顿,阻止冒泡可以解决。
本文介绍了一种解决使用touchmove监听滑动时导致动画卡顿的问题,通过将bindtouchmove改为catchtouchmove来阻止事件冒泡,从而优化用户体验。
修改
bindtouchmove="buttonMove"
为
catchtouchmove="buttonMove"
使用touchmove监听滑动要更新视图层,导致动画卡顿,阻止冒泡可以解决。
1万+
7073
2899

被折叠的 条评论
为什么被折叠?