Skip to content

Commit

Permalink
fix a corner case where pointer interaction generates two points
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil authored Aug 3, 2023
1 parent 194e1f4 commit 4a80eb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/interactions/pointer.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ function pointerK(kx, ky, {x, y, px, py, maxRadius = 40, channels, render, ...op
facetState.set(index.fi, ri);
f = requestAnimationFrame(() => {
f = null;
for (const r of facetState.values()) {
if (r < ri) {
for (const [fi, r] of facetState) {
if (r < ri || (r === ri && fi < index.fi)) {
ii = null;
break;
}
Expand Down

0 comments on commit 4a80eb0

Please sign in to comment.