Skip to content

Commit 9aba9c8

Browse files
committed
doesn't always make sense to hover on fills (e.g., single trace polygon, points, lines, and/or fill not specified)
1 parent e70e217 commit 9aba9c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/layers2traces.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ split_on <- function(dat) {
911911

912912
# given a geom, are we hovering over points or fill?
913913
hover_on <- function(data) {
914-
if (inherits(data, c("GeomHex", "GeomRect", "GeomMap", "GeomMosaic", "GeomAnnotationMap", "GeomSf")) ||
914+
if (inherits(data, c("GeomHex", "GeomRect", "GeomMap", "GeomMosaic", "GeomAnnotationMap")) ||
915915
# is this a "basic" polygon?
916916
identical("GeomPolygon", grep("^Geom", class(data), value = T))) {
917917
"fills"

0 commit comments

Comments
 (0)