在一体机上的web程序 touchmove和mousemove是不太方便触发到的。
点击页面,移动,整个页面就会跟着移动。
个人怀疑是touchmove和mousemove被解释成手势了。
只要在css里加上-ms-touch-action:none,再点击、移动,整个页面就不会跟着移动了。
touchmove和mousemove正常触发
本文介绍了一种解决网页在一体机上因touchmove和mousemove事件导致页面跟随手指移动的问题的方法。通过在CSS中设置-ms-touch-action:none,可以使touchmove和mousemove事件正常触发而不引起页面滚动。
在一体机上的web程序 touchmove和mousemove是不太方便触发到的。
点击页面,移动,整个页面就会跟着移动。
个人怀疑是touchmove和mousemove被解释成手势了。
只要在css里加上-ms-touch-action:none,再点击、移动,整个页面就不会跟着移动了。
touchmove和mousemove正常触发
2191

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