mirror of
https://github.com/photonstorm/phaser
synced 2024-11-25 14:10:42 +00:00
Merge pull request #6859 from rexrainbow/bug-input-disableInteractive-nottoponly
Use cloned drag pointers
This commit is contained in:
commit
0c17c6ac7a
1 changed files with 15 additions and 0 deletions
|
@ -1137,6 +1137,11 @@ var InputPlugin = new Class({
|
|||
|
||||
var list = this._drag[pointer.id];
|
||||
|
||||
if (list.length > 1)
|
||||
{
|
||||
list = list.slice(0);
|
||||
}
|
||||
|
||||
for (var i = 0; i < list.length; i++)
|
||||
{
|
||||
var gameObject = list[i];
|
||||
|
@ -1274,6 +1279,11 @@ var InputPlugin = new Class({
|
|||
|
||||
var list = this._drag[pointer.id];
|
||||
|
||||
if (list.length > 1)
|
||||
{
|
||||
list = list.slice(0);
|
||||
}
|
||||
|
||||
for (var i = 0; i < list.length; i++)
|
||||
{
|
||||
var gameObject = list[i];
|
||||
|
@ -1401,6 +1411,11 @@ var InputPlugin = new Class({
|
|||
// 5 = Pointer was actively dragging but has been released, notify draglist
|
||||
var list = this._drag[pointer.id];
|
||||
|
||||
if (list.length > 1)
|
||||
{
|
||||
list = list.slice(0);
|
||||
}
|
||||
|
||||
for (var i = 0; i < list.length; i++)
|
||||
{
|
||||
var gameObject = list[i];
|
||||
|
|
Loading…
Reference in a new issue