Stay organized with collections Save and categorize content based on your preferences.

blockly > Touch > setClientFromTouch

Touch.setClientFromTouch() function

Set an event's clientX and clientY from its first changed touch. Use this to make a touch event work in a mouse event handler.

Signature:

export declare function setClientFromTouch(e: Event | PseudoEvent): void;

Parameters

Parameter Type Description
e Event | PseudoEvent A touch event.

Returns:

void