Pointer#justReleased()

justReleased(duration) → {boolean}

The Pointer is considered justReleased if the time it left the touchscreen is less than justReleasedRate.
Note that calling justReleased doesn't reset the pressed status of the Pointer, it will return true for as long as the duration is valid.
If you wish to check if the Pointer was released just once then see the Sprite.events.onInputUp event.

Parameters
Name Type Argument Description
duration number <optional>

The time to check against. If none given it will use InputManager.justReleasedRate.

Returns
boolean -

true if the Pointer was released within the duration given.

Source code: input/Pointer.js (Line 1057)
doc_phaser
2017-02-14 11:06:03
Comments
Leave a Comment

Please login to continue.