TouchEvent Class
https://w3c.github.io/touch-events/#touchevent-interface
public sealed class TouchEvent : UIEvent- Inheritance
UIEventTouchEvent
Constructors
| Name | Description |
|---|---|
| TouchEvent(string, TouchEventInit?) | Creates a touch event of the given type with the given initialization dictionary. |
TouchEvent(string, TouchEventInit?)
TouchEvents.csCreates a touch event of the given type with the given initialization dictionary.
public TouchEvent(string type, TouchEventInit? eventInitDict = null)Properties
| Name | Description |
|---|---|
| AltKey | Gets a value indicating whether the Alt key was active. |
| ChangedTouches | Gets the touch points that changed: the ones that started, moved or ended (retargeted, see TouchEvent.Touches). |
| CtrlKey | Gets a value indicating whether the Control key was active. |
| MetaKey | Gets a value indicating whether the Meta key was active. |
| ShiftKey | Gets a value indicating whether the Shift key was active. |
| TargetTouches | Gets the touch points that are in contact with the surface and started on the target of the event (retargeted, see TouchEvent.Touches). |
| Touches | Gets the touch points that are in contact with the surface. As in Chromium and Gecko, while the event is dispatched, the targets of the touch points are retargeted against the current target of the event (https://dom.spec.whatwg.org/#retarget), as the target of the event is: a listener outside of a shadow tree does not see the nodes of the shadow tree (the touch points whose target changes are copies, the same ones for the listeners of a tree). |
AltKey
TouchEvents.csGets a value indicating whether the Alt key was active.
public bool AltKey { get; }ChangedTouches
TouchEvents.csGets the touch points that changed: the ones that started, moved or ended (retargeted, see TouchEvent.Touches).
public TouchList ChangedTouches { get; }CtrlKey
TouchEvents.csGets a value indicating whether the Control key was active.
public bool CtrlKey { get; }MetaKey
TouchEvents.csGets a value indicating whether the Meta key was active.
public bool MetaKey { get; }ShiftKey
TouchEvents.csGets a value indicating whether the Shift key was active.
public bool ShiftKey { get; }TargetTouches
TouchEvents.csGets the touch points that are in contact with the surface and started on the target of the event (retargeted, see TouchEvent.Touches).
public TouchList TargetTouches { get; }Touches
TouchEvents.csGets the touch points that are in contact with the surface. As in Chromium and Gecko, while the event is dispatched, the targets of the touch points are retargeted against the current target of the event (https://dom.spec.whatwg.org/#retarget), as the target of the event is: a listener outside of a shadow tree does not see the nodes of the shadow tree (the touch points whose target changes are copies, the same ones for the listeners of a tree).
public TouchList Touches { get; }Methods
| Name | Description |
|---|---|
| GetModifierState(string) | Returns whether the given modifier key was active when the event occurred. |
GetModifierState(string)
TouchEvents.csReturns whether the given modifier key was active when the event occurred.