TouchEvent 对象处理用户触摸触摸设备时发生的事件。
Event | Occurs When |
---|---|
ontouchcancel | A touch is interrupted |
ontouchend | A finger is removed from a touch screen |
ontouchmove | A finger is dragged across the screen |
ontouchstart | A finger is placed on a touch screen |
Property | Returns |
---|---|
altKey | If the ALT key was pressed when the event was triggered |
changedTouches | A list of the touch objects whose state changed between this and the previous touch |
ctrlKey | If the CTRL key was pressed when the event was triggered |
metaKey | If the META key was pressed when the event was triggered |
shiftKey | If the SHIFT key was pressed when the event was triggered |
targetTouches | A list of the touch objects that are in contact with the surface and where the touchstart event occured on the same target element as the current target element |
touches | A list of the touch objects that are currently in contact with the surface |
TouchEvent 继承了以下所有属性和方法:
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!