Skip to content

Commit fd6c29e

Browse files
committed
Pointer.move would accidentally reset the isDown status of the Pointer on touch devices, which broke things like Sprite input events when built to native apps or run locally (phaserjs#1932 phaserjs#1943)
1 parent 1f73bbb commit fd6c29e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ If you are an exceptional JavaScript developer and would like to join the Phaser
262262
### Bug Fixes
263263

264264
* DeviceButton would try to set `altKey`, `shiftKey` and `ctrlKey` even for Joypads (thanks @zatch #1939)
265-
265+
* Pointer.move would accidentally reset the `isDown` status of the Pointer on touch devices, which broke things like Sprite input events when built to native apps or run locally (#1932 #1943)
266266

267267

268268

src/input/Pointer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ Phaser.Pointer.prototype = {
663663
this.button = event.button;
664664
}
665665

666-
if (fromClick)
666+
if (fromClick && this.isMouse)
667667
{
668668
this.updateButtons(event);
669669
}

0 commit comments

Comments
 (0)