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
+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);
}
},
/**