Fixed duplication when dragging media into the backpack

This commit is contained in:
Nathan Dinsmore 2014-05-07 15:11:16 -04:00
parent 9be7d2e86e
commit 159e156d26

View file

@ -432,9 +432,13 @@ public class GestureHandler {
possibleTargets.push(app.stagePane);
}
possibleTargets.reverse();
var tried:Array = [];
for each (var o:* in possibleTargets) {
while (o) { // see if some parent can handle the drop
if (('handleDrop' in o) && o.handleDrop(droppedObj)) return true;
if (tried.indexOf(o) == -1) {
if (('handleDrop' in o) && o.handleDrop(droppedObj)) return true;
tried.push(o);
}
o = o.parent;
}
}