H
- handler typepublic abstract class TouchEvent<H extends EventHandler> extends HumanInputEvent<H>
DomEvent.Type<H extends EventHandler>
Constructor and Description |
---|
TouchEvent() |
Modifier and Type | Method and Description |
---|---|
JsArray<Touch> |
getChangedTouches()
Get an array of
touches which have changed since the last
touch event fired. |
JsArray<Touch> |
getTargetTouches()
Get an array of
touches all touch which originated at the
same target as the current touch event. |
JsArray<Touch> |
getTouches()
Get an array of all current
touches . |
static boolean |
isSupported()
Runtime check for whether touch scrolling is supported in this browser.
|
isAltKeyDown, isControlKeyDown, isMetaKeyDown, isShiftKeyDown
fireNativeEvent, fireNativeEvent, getAssociatedType, getNativeEvent, getRelativeElement, init, preventDefault, setNativeEvent, setRelativeElement, stopPropagation
assertLive, dispatch, getSource, isLive, kill, revive
setSource, toDebugString, toString
public static boolean isSupported()
public JsArray<Touch> getChangedTouches()
touches
which have changed since the last
touch event fired. Note, that for touch end events
,
the touch which has just ended will not be present in the array. Moreover,
if the touch which just ended was the last remaining touch, then a zero
length array will be returned.public JsArray<Touch> getTargetTouches()
touches
all touch which originated at the
same target as the current touch event. Note, that for touch end events
, the touch which has just ended will not be present in
the array. Moreover, if the touch which just ended was the last remaining
touch, then a zero length array will be returned.public JsArray<Touch> getTouches()
touches
. Note, that for
touch end events
, the touch which has just ended will
not be present in the array. Moreover, if the touch which just ended was
the last remaining touch, then a zero length array will be returned.