Touch class

Signature:

export default class Touch extends Input 

Extends: Input

Constructors

ConstructorDescription
(constructor)(viewer)Constructs a new instance of the Touch class

Properties

PropertyModifiersDescription
isDoubleClickWhether the click is double click
numCursorsHow many fingers are done
x0The start position X
y0The start position Y

Methods

MethodDescription
addTouchDbClickListener(reaction, name)Add a double tap callback.
addTouchMoveListener(reaction, name)Add a touch move callback.
addTouchStartListener(reaction, name)Add a touch start callback.
addTouchStopListener(reaction, name)Add a touch stop callback.