Skip to content

Commit

Permalink
Snap if distance <= range
Browse files Browse the repository at this point in the history
Formerly distance < range
  • Loading branch information
taye committed Dec 13, 2014
1 parent 480d7fa commit 430c28c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interact.js
Original file line number Diff line number Diff line change
Expand Up @@ -2667,7 +2667,7 @@
dx = target.x - page.x,
dy = target.y - page.y,
distance = hypot(dx, dy),
inRange = distance < range;
inRange = distance <= range;

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

0 comments on commit 430c28c

Please sign in to comment.