Skip to main content

SCREEN_TOUCH_MOVE

Description

Emits when the user moves their finger on the screen.

ecs.input.SCREEN_TOUCH_MOVE.detail : { pointerId, position, target, start, change }

Event Properties

PropertyTypeDescription
pointerIdnumberA unique ID for the pointer provided by the browser
positionobjectThe screen position in pixels. ({x: number, y: number})
targetEidIf initial touch raycasts to an object, this will be the eid of the object, and as the pointer moves, the target will be the same as the initial target.
startobjectOn move/end, this will be the first position emitted in start. ({x: number, y: number})
changeobjectOn move, the delta of movement since the last event ({x: number, y: number})