The TouchEvent Object handles events that occur when a user touches a touch-based device.
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 |
The TouchEvent inherits all the properties and methods from:
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!