From 01cbb1271421b7bf7be8d64612eaec15e0e62e5c Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Sun, 30 Aug 2020 09:57:30 +0900 Subject: [PATCH] Prevent defaults --- game.js | 1 + 1 file changed, 1 insertion(+) diff --git a/game.js b/game.js index 17f35cc..fa269b4 100644 --- a/game.js +++ b/game.js @@ -334,6 +334,7 @@ function step() { function updateMouse(e) { //console.log(getMousePos(canvas,e)) + e.preventDefault() var mousepos = getMousePos(canvas,e) LAST_MOUSE_X=mousepos.x LAST_MOUSE_Y=mousepos.y