Signature:
export default class Touch extends Input
Extends: Input
Constructor | Description |
---|---|
(constructor)(viewer) | Constructs a new instance of the Touch class |
Property | Modifiers | Description |
---|---|---|
isDoubleClick | Whether the click is double click | |
numCursors | How many fingers are done | |
x0 | The start position X | |
y0 | The start position Y |
Method | Description |
---|---|
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. |