mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 14:08:28 +00:00
Merge pull request #4347 from rgk/patch-5
On mobile, have pointerup and pointerout get triggered together.
This commit is contained in:
commit
3104246386
1 changed files with 8 additions and 0 deletions
|
@ -1489,6 +1489,14 @@ var InputPlugin = new Class({
|
|||
|
||||
gameObject.emit(Events.GAMEOBJECT_POINTER_UP, pointer, gameObject.input.localX, gameObject.input.localY, _eventContainer);
|
||||
|
||||
// Clear over and emit 'pointerout' on touch.
|
||||
if (pointer.wasTouch)
|
||||
{
|
||||
this._over[pointer.id] = [];
|
||||
|
||||
gameObject.emit(Events.GAMEOBJECT_POINTER_OUT, pointer, gameObject.input.localX, gameObject.input.localY, _eventContainer);
|
||||
}
|
||||
|
||||
if (_eventData.cancelled)
|
||||
{
|
||||
aborted = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue