InputHandler#overDuration()

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)
doc_phaser
2017-02-14 10:53:25
Comments
Leave a Comment

Please login to continue.