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

blockly > Touch > isTouchEvent

Touch.isTouchEvent() function

Check whether a given event is a touch event or a pointer event.

Signature:

export declare function isTouchEvent(e: Event | PseudoEvent): boolean;

Parameters

Parameter Type Description
e Event | PseudoEvent An event.

Returns:

boolean

True if it is a touch or pointer event; false otherwise.