jQuery.event.move

http://stephband.info/jquery.event.move/

 

 

Move events

movestart
Fired following touchmove or mousemove, when the touch (or mouse) crosses a threshold distance from the position of the mousedown or touchstart.
move
Fired on every animation frame where a touchmove or mousemove has changed position.
moveend
Fired following mouseup or touchend, after the last move event, and in the case of touch events when the finger that started the move has been lifted.

Move event objects are augmented with the properties:

e.pageX,e.pageY
当前页面坐标的指针。


e.startX,e.startY
页面坐标的指针,曾在movestart。


e.distX,e.distY
距离自movestart的指针移动。


e.deltaX,e.deltaY
距离指针自去年移动事件已经转移。


e.velocityX,e.velocityY
速度像素/ MS,平均在过去的几个事件。

--------------------------------------一些原生的js属性和事件

clientX、clientY 相对于当前屏幕的X或Y位置 
pageX、pageY 相对于整体页面的X或Y位置
screenX、screenY 相对于用户计算机屏幕的X或Y位置
identifier 事件的唯一标识符 target 生成触摸的目标对象

手势事件的事件对象会比普通触摸事件多两个属性,

rotation 手指的旋转角度 scale 放缩的值



http://blog.sina.com.cn/s/blog_6d48e77101016fln.html

转载于:https://www.cnblogs.com/sxmny/p/3980616.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值