Fixed issue 141 - If a Sprite is dragged and you release the Pointer while not over the Sprite, it will think it's still over it (thanks Paratron)

This commit is contained in:
photonstorm
2013-10-31 16:27:10 +00:00
parent 6f93a2ec94
commit 01eab3aeb1
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -57,6 +57,7 @@ Version 1.1.2
* Fixed issue 149 - Starling XML files now load properly again, also created an Example to show use of them (thanks haden)
* Fixed an issue where if the Starling XML file didn't contain a frameX/Y value it would crash on import.
* Fixed the Multiple Animations Example - it's now a lovely underwater scene :)
* Fixed issue 141 - If a Sprite is dragged and you release the Pointer while not over the Sprite, it will think it's still over it (thanks Paratron)
+5
View File
@@ -945,6 +945,11 @@ Phaser.InputHandler.prototype = {
this.sprite.events.onDragStop.dispatch(this.sprite, pointer);
this.sprite.events.onInputUp.dispatch(this.sprite, pointer);
if (this.checkPointerOver(pointer) == false)
{
this._pointerOutHandler(pointer);
}
},
/**