目录

HTML DOM TouchEvent

❮ DOM 事件 ❮ 事件对象


触摸事件对象

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 继承了以下所有属性和方法:

Ui事件

事件对象


❮ DOM 事件 ❮ 事件对象