touch事件小结

原文:http://zhuxinyong.com/2016/03/08/touch%E4%BA%8B%E4%BB%B6%E5%B0%8F%E7%BB%93/
目前支持良好的三种触摸事件:1. touchstart 2. touchmove 3. touchend。this

ToucheEvent -> TouchList -> Touch
触摸事件属性(TouchEvent):
Represents an event that occurs when the state of touches on the surface changes.事件

触摸事件列表(TouchList):ip

Represents a group of touches; this is used when the user has, for example, multiple fingers on the surface at the same time.get

  • touches 当前位于屏幕上的全部手指动做的列表。event

  • targetTouches 位于当前 DOM 元素上的手指动做的列表cli

  • changedTouches 涉及当前事件的手指动做的列表。例如,在一个 touchend 事件中,这将是移开手指
    触摸事件(Touch):sed

Represents a single point of contact between the user and the touch surface.List

位置信息:im

  • clientX/Ytouch

  • pageX/Y

  • screenX/y这些信息能够判断拖动的方向(下拉刷新/上拉加载)。

相关文章
相关标签/搜索