Skip to content

Commit 430c28c

Browse files
committed
Snap if distance <= range
Formerly distance < range
1 parent 480d7fa commit 430c28c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interact.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2667,7 +2667,7 @@
26672667
dx = target.x - page.x,
26682668
dy = target.y - page.y,
26692669
distance = hypot(dx, dy),
2670-
inRange = distance < range;
2670+
inRange = distance <= range;
26712671

26722672
// Infinite targets count as being out of range
26732673
// compared to non infinite ones that are in range

0 commit comments

Comments
 (0)