GESTURE_MOVE
Description
Emits when the user moves their finger(s) on the screen.
ecs.input.GESTURE_MOVE.detail : { touchCount, position, startPosition, positionChange, spread, startSpread, spreadChange, nextTouchCount }
Event Properties
Property | Type | Description |
---|---|---|
touchCount | number | The number of points contributing to the touch, for example a pinch gesture on mobile will be touchCount: 2 |
position | object | The screen position in pixels ({x: number, y: number} ) |
startPosition | object | On move/end, this will be the first position emitted in start ({x: number, y: number} ) |
positionChange | object | On move, the delta of movement since the last event ({x: number, y: number} ) |
spread | number | The average distance between pointers from the center point, a metric of how pinched or spread the touches are. |
startSpread | number | On move, the first spread emitted in start. |
spreadChange | number | On move, the delta of spread since the last event. |
nextTouchCount | number | On end, the number of pointers involved in the following gesture. For example if the gesture is changing from 2 to 3 fingers, the two finger gesture will be ended with nextTouchCount: 3 |