mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-17 10:01:08 +00:00
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:
commit
9e1a93db5a
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue