From 430c28cf77d30193894e01686f14e086fb704a50 Mon Sep 17 00:00:00 2001 From: Taye Adeyemi Date: Sat, 13 Dec 2014 21:55:38 +0000 Subject: [PATCH] Snap if distance <= range Formerly distance < range --- interact.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interact.js b/interact.js index 3f8d01c22..fef6e39a9 100644 --- a/interact.js +++ b/interact.js @@ -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