Skip drag checking on a draging Game Object

Skip drag checking on a draging Game Object to prevent multi-drag issue.
This commit is contained in:
Hua 2018-06-19 10:33:22 +08:00
parent a480232d87
commit 821504a893

View file

@ -803,7 +803,7 @@ var InputPlugin = new Class({
{
gameObject = currentlyOver[i];
if (gameObject.input.draggable)
if (gameObject.input.draggable && (gameObject.input.dragState === 0))
{
draglist.push(gameObject);
}