8.7 released—WinterCG Compliance Part 1
Learn more
TouchGestureEventData
interface TouchGestureEventData extends TapGestureEventData {
  action: "up" | "move" | "down" | "cancel";
  getActivePointers(): Pointer[];
  getAllPointers(): Pointer[];
}
Provides gesture event data.

Summary

Properties

action
4 properties inherited from GestureEventData
Click to expand
2 properties inherited from EventData
Click to expand

Properties

action

action: "up" | "move" | "down" | "cancel"
Gets action of the touch. Possible values: 'up', 'move', 'down', 'cancel'

Methods

getActivePointers

getActivePointers(): Pointer[]
Gets the pointers that triggered the event. Note: In Android there is aways only one active pointer.
Returns Pointer[]

getAllPointers

getAllPointers(): Pointer[]
Gets all pointers.
Returns Pointer[]
Previous
TimerInfo