diff --git a/src/util/graphic.js b/src/util/graphic.js index 110288a857..7f12289741 100644 --- a/src/util/graphic.js +++ b/src/util/graphic.js @@ -274,14 +274,14 @@ function singleEnterEmphasis(el) { return; } - var useHoverLayer = el.useHoverLayer; - el.__highlighted = useHoverLayer ? 'layer' : 'plain'; - var zr = el.__zr; - if (el.isGroup || (!zr && useHoverLayer)) { + if (el.isGroup || (!zr && el.useHoverLayer)) { return; } + var useHoverLayer = el.useHoverLayer && zr.painter.type === 'canvas'; + el.__highlighted = useHoverLayer ? 'layer' : 'plain'; + var elTarget = el; var targetStyle = el.style;