FindTarget patch 1 (#3077)

define pointer before running findTarget
This commit is contained in:
blucobalto 2016-07-03 09:15:09 +02:00 committed by Andrea Bogazzi
parent 4433809cb1
commit cf95dd45c9

View file

@ -958,16 +958,17 @@
return;
}
var pointer = this.getPointer(e, true),
activeGroup = this.getActiveGroup();
// first check current group (if one exists)
// avtive group does not check sub targets like normal groups.
// active group does not check sub targets like normal groups.
// if active group just exits.
var activeGroup = this.getActiveGroup();
if (activeGroup && !skipGroup && this._checkTarget(pointer, activeGroup)) {
return activeGroup;
}
var pointer = this.getPointer(e, true),
objects = this._objects;
var objects = this._objects;
this.targets = [ ];
if (this._isLastRenderedObject(pointer, e)) {