Merge pull request #6859 from rexrainbow/bug-input-disableInteractive-nottoponly

Use cloned drag pointers
This commit is contained in:
Zeke Chan 2024-07-10 16:27:51 +08:00 committed by GitHub
commit 0c17c6ac7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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];