Move resetCursor so it does not lose input Fix #6387

This commit is contained in:
Robert Kowalski 2024-02-05 18:38:42 -05:00
parent 7ed40fdf7d
commit d35e69ce25

View file

@ -784,6 +784,7 @@ var InputPlugin = new Class({
if (input)
{
this.removeDebug(gameObject);
this.manager.resetCursor(input);
input.gameObject = undefined;
input.target = undefined;
@ -851,8 +852,6 @@ var InputPlugin = new Class({
if (index > -1)
{
over[i].splice(index, 1);
manager.resetCursor(input);
}
}