diff --git a/README.md b/README.md index 5d0891d6..b893f29d 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/src/input/InputHandler.js b/src/input/InputHandler.js index 38a3d865..711f4c31 100644 --- a/src/input/InputHandler.js +++ b/src/input/InputHandler.js @@ -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); + } + }, /**