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:
photonstorm 2015-07-27 13:34:06 +01:00
parent 1f73bbbe94
commit fd6c29e451
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -663,7 +663,7 @@ Phaser.Pointer.prototype = {
this.button = event.button;
}
if (fromClick)
if (fromClick && this.isMouse)
{
this.updateButtons(event);
}