Skip to content

Commit 72a0d40

Browse files
committed
suppress other facets when sticky
1 parent 57bd084 commit 72a0d40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interactions/pointer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function pointerK(kx, ky, {px, py, maxRadius = 40, channels, ...options} = {}) {
7777
if (event.pointerType !== "mouse") return;
7878
if (sticky && g.contains(event.target)) return; // stay sticky
7979
if (sticky) (sticky = false), render(null);
80-
else if (i != null) sticky = true;
80+
else if (i != null) (sticky = true), facetState?.set(index.fi, -1); // suppress other facets
8181
}
8282

8383
function pointerleave(event) {

0 commit comments

Comments
 (0)