Package com.teamdev.jxbrowser.dom.event
Interface TouchEvent
- All Superinterfaces:
Event,Event,UiEventModifier
A touch event that provides access to the touch event data.
This event occurs when a user performs an action with a touch device, for example, touches the screen, moves a finger on the screen, or performs a multi-touch gesture.
- Since:
- 8.0.0
-
Method Summary
Modifier and TypeMethodDescriptionThe touch points that contributed to the event.The touch points that have started on thetarget elementof this event.touches()All touch points that are currently present on the screen.Methods inherited from interface com.teamdev.jxbrowser.dom.event.Event
currentTarget, isBubbles, isCancelable, isTrusted, phase, preventDefault, stopPropagation, target, typeMethods inherited from interface com.teamdev.jxbrowser.dom.event.UiEventModifier
keyModifiers
-
Method Details
-
touches
List<TouchPoint> touches()All touch points that are currently present on the screen.The returned points correspond to the locations of touch contacts on the screen, e.g., to several fingers touching at once.
-
changedTouches
List<TouchPoint> changedTouches()The touch points that contributed to the event.Meaning of these points varies depending on the event
type.- For
EventType.TOUCH_START, it is a list of the touches that became active with this event. - For
EventType.TOUCH_MOVE, it is a list of the touches that have changed since the last event. - For
EventType.TOUCH_CANCELandEventType.TOUCH_END, it is a list of the touches that have just been removed, and no longer present on the screen.
- For
-
targetTouches
List<TouchPoint> targetTouches()The touch points that have started on thetarget elementof this event.The result consists of elements from the
touches()list, with their ordering not preserved.
-