Skip to content

Commit

Permalink
adjusted _setCursorFromEvent to account for subTargets
Browse files Browse the repository at this point in the history
  • Loading branch information
jakedowns committed Dec 15, 2019
1 parent 0cd4196 commit 1909d1f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/mixins/canvas_events.mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -1047,6 +1047,13 @@
&& target._findTargetCorner(this.getPointer(e, true));

if (!corner) {
if (target.subTargetCheck){
// hoverCursor should come from top-most subTarget,
// so we walk the array backwards
this.targets.concat().reverse().map(function(_target){
hoverCursor = _target.hoverCursor || hoverCursor;
});
}
this.setCursor(hoverCursor);
}
else {
Expand Down

0 comments on commit 1909d1f

Please sign in to comment.