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

blockly > Touch > isMouseOrTouchEvent

Touch.isMouseOrTouchEvent() function

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

Signature:

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

Parameters

Parameter Type Description
e Event | PseudoEvent An event.

Returns:

boolean

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