[readonly] duration : number
How long the Pointer has been depressed on the touchscreen or any of the mouse buttons have been held down.
If not currently down it returns -1.
If you need to test a specific mouse or pen button then access the buttons directly, i.e. Pointer.rightButton.duration
.
- Source code: input/Pointer.js (Line 1192)
Please login to continue.