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)
Please login to continue.