Saltar al contenido principal

SCREEN_TOUCH_END

Description

Emits when the user lift the finger off the screen.

ecs.input.SCREEN_TOUCH_END.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})