Skip to content

Commit 0a4fd73

Browse files
committed
more of let _inHover handle unified hover in legend draw
1 parent f717986 commit 0a4fd73

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/legend/draw.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,15 @@ module.exports = function draw(gd, container) {
3030
var layer;
3131

3232
// Check whether this is the main legend (ie. called without any container)
33-
if(container && container._inHover) {
33+
var inHover = container && container._inHover;
34+
if(inHover) {
3435
layer = container.layer;
3536
clipId += '-hover';
3637
} else {
3738
container = fullLayout.legend || {};
3839
layer = fullLayout._infolayer;
3940
}
4041

41-
var inHover = !!container._inHover;
42-
4342
if(!layer) return;
4443

4544
if(!gd._legendMouseDownTime) gd._legendMouseDownTime = 0;

0 commit comments

Comments
 (0)