Skip to content

Commit 0c051ae

Browse files
committed
fix: linked hover state persists when cursor leaves legend key (#330)
1 parent 4fb1e49 commit 0c051ae

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: ggiraph
33
Title: Make 'ggplot2' Graphics Interactive
4-
Version: 0.9.5.004
4+
Version: 0.9.5.005
55
Authors@R: c(
66
person("David", "Gohel", , "david.gohel@ardata.fr", role = c("aut", "cre")),
77
person("Panagiotis", "Skintzos", , "sigmapi@posteo.net", role = "aut"),

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ and vice versa (#330).
1414

1515
## Issues
1616

17+
- fix linked hover state not clearing when cursor leaves a legend key
18+
without re-entering the panel area (#330).
1719
- fix label_interactive broken by the new V4 ggplot2 (#348)
1820
- fix interactive labels in binned guides when scale breaks fall outside limits (#338)
1921

inst/htmlwidgets/girafe.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

srcjs/modules/hover.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export default class HoverHandler {
6969
}
7070

7171
clear() {
72-
if (this.lastTargetId) {
72+
if (this.lastTargetId || this.dataHovered.length > 0) {
7373
this.lastTargetId = null;
7474
this.setHovered([]);
7575
}

0 commit comments

Comments
 (0)