Merge pull request #2035 from gordyr/Fixes-grouped-mouse-cursor-hit-detection

Fixes #2034 Mouse hit detection on active groups
This commit is contained in:
Juriy Zaytsev 2015-03-19 11:13:25 +01:00
commit 9e1a93db5a

View file

@ -808,9 +808,9 @@
var target,
pointer = this.getPointer(e, true),
i = this._objects.length;
// Do not check for currently grouped objects, since we check the parent group itself.
while (i--) {
if (this._checkTarget(e, this._objects[i], pointer)){
if (!this._objects[i].group && this._checkTarget(e, this._objects[i], pointer)){
this.relatedTarget = this._objects[i];
target = this._objects[i];
break;