mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 22:52:14 +00:00
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)
This commit is contained in:
parent
1f73bbbe94
commit
fd6c29e451
2 changed files with 2 additions and 2 deletions
|
@ -262,7 +262,7 @@ If you are an exceptional JavaScript developer and would like to join the Phaser
|
|||
### Bug Fixes
|
||||
|
||||
* DeviceButton would try to set `altKey`, `shiftKey` and `ctrlKey` even for Joypads (thanks @zatch #1939)
|
||||
|
||||
* 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)
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -663,7 +663,7 @@ Phaser.Pointer.prototype = {
|
|||
this.button = event.button;
|
||||
}
|
||||
|
||||
if (fromClick)
|
||||
if (fromClick && this.isMouse)
|
||||
{
|
||||
this.updateButtons(event);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue