overDuration(pointerId) → {number}
If the pointer is currently over this Sprite this returns how long it has been there for in milliseconds.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
pointerId | integer | <optional> | 0 |
Returns
number -
The number of milliseconds the pointer has been over the Sprite, or -1 if not over.
- Source code: input/InputHandler.js (Line 1343)
Please login to continue.