Small bugfix in js

This commit is contained in:
Fabian Wunsch 2022-04-09 21:22:56 +02:00
parent 706f2b32b0
commit 93dc57d618

View file

@ -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(){