Skip to content

Commit fd4f456

Browse files
committed
Pointer.getDuration would only return zero until the pointer was released, or moved (basically any action that generated a DOM event). It now returns the duration regardless of the DOM events. Fix phaserjs#4444
1 parent 4d38283 commit fd4f456

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ Notes:
153153
* The Particle Emitter Manager was missing the Mask component, even though it fully supported masking. The Mask component has now been added. You can now mask the manager, which impacts all emitters you create through it, or a specific emitter. Different emitters can have different masks, although they override the parent mask, if set.
154154
* You can now apply a Bitmap Mask to a Camera or Container and a Geometry Mask to a child and have it work correctly.
155155
* The `InputManager.update` method is now called every frame, as long as a native DOM event hasn't already fired it, which allows things like `setPollRate` to work again. Fix #4405 (thanks @Shucki)
156+
* `Pointer.getDuration` would only return zero until the pointer was released, or moved (basically any action that generated a DOM event). It now returns the duration regardless of the DOM events. Fix #4444 (thanks @plazicx)
156157

157158
### Examples, Documentation and TypeScript
158159

src/input/Pointer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ var Pointer = new Class({
965965

966966
/**
967967
* If the Pointer has a button pressed down at the time this method is called, it will return the
968-
* duration since the Pointer's was pressed down.
968+
* duration since the button was pressed down.
969969
*
970970
* If no button is held down, it will return the last recorded duration, based on the time
971971
* the Pointer button was released.

0 commit comments

Comments
 (0)