From 93dc57d61862c376362005f4462e65fc0bbc99fe Mon Sep 17 00:00:00 2001 From: Fabian Wunsch Date: Sat, 9 Apr 2022 21:22:56 +0200 Subject: [PATCH] Small bugfix in js --- web/_js/draw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/_js/draw.js b/web/_js/draw.js index 99bf6f9a..7026b86e 100644 --- a/web/_js/draw.js +++ b/web/_js/draw.js @@ -249,7 +249,7 @@ function initDraw(){ } area *= 3; - return [Math.min(x / area)+0.5, Math.max(y / area)+0.5]; + return [Math.floor(x / area)+0.5, Math.floor(y / area)+0.5]; } function undo(){