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