@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="TouchEvent")
public class TouchEvent
extends UIEvent
AT_TARGET, BUBBLING_PHASE, cancelBubble, CAPTURING_PHASE, NONE, returnValue| Constructor and Description |
|---|
TouchEvent(java.lang.String type)
The TouchEvent() constructor creates a new TouchEvent.
|
TouchEvent(java.lang.String type,
TouchEventInit eventInitDict)
The TouchEvent() constructor creates a new TouchEvent.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
altKey()
A Boolean value indicating whether or not the alt (Alternate) key is enabled when the touch event is created.
|
TouchList |
changedTouches()
The changedTouches read-only property is a TouchList whose touch points (Touch objects) varies depending on the event type, as follows:
|
boolean |
ctrlKey()
A Boolean value indicating whether the control (Control) key is enabled when the touch event is created.
|
boolean |
metaKey()
A Boolean value indicating whether or not the Meta key is enabled when the touch event is created.
|
boolean |
shiftKey()
A Boolean value indicating whether or not the shift key is enabled when the touch event is created.
|
TouchList |
targetTouches()
The targetTouches read-only property is a TouchList listing all the Touch objects for touch points that are still in contact with the touch surface and whose touchstart event occurred inside the same target element as the current target element.
|
TouchList |
touches()
touches is a read-only TouchList listing all the Touch objects for touch points that are currently in contact with the touch surface, regardless of whether or not they've changed or what their target element was at touchstart time.
|
bubbles, cancelable, composed, composedPath, currentTarget, defaultPrevented, eventPhase, initEvent, initEvent, initEvent, isTrusted, preventDefault, srcElement, stopImmediatePropagation, stopPropagation, target, timeStamp, typepublic TouchEvent(@Nonnull
java.lang.String type,
@Nonnull
TouchEventInit eventInitDict)
public TouchEvent(@Nonnull
java.lang.String type)
@JsProperty(name="altKey") public boolean altKey()
@JsProperty(name="changedTouches") @Nonnull public TouchList changedTouches()
@JsProperty(name="ctrlKey") public boolean ctrlKey()
@JsProperty(name="metaKey") public boolean metaKey()
@JsProperty(name="shiftKey") public boolean shiftKey()
@JsProperty(name="targetTouches") @Nonnull public TouchList targetTouches()
@JsProperty(name="touches") @Nonnull public TouchList touches()