From 1909d1f49ee1c147475e6d71d68299126a33c5b0 Mon Sep 17 00:00:00 2001 From: jake downs Date: Sun, 15 Dec 2019 13:12:01 -0800 Subject: [PATCH] adjusted _setCursorFromEvent to account for subTargets --- src/mixins/canvas_events.mixin.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mixins/canvas_events.mixin.js b/src/mixins/canvas_events.mixin.js index f6c61d74a98..41b8d88d5b4 100644 --- a/src/mixins/canvas_events.mixin.js +++ b/src/mixins/canvas_events.mixin.js @@ -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 {