Prevent defaults

master
sigonasr2 4 years ago
parent 52f274e11d
commit 01cbb12714
  1. 1
      game.js

@ -334,6 +334,7 @@ function step() {
function updateMouse(e) { function updateMouse(e) {
//console.log(getMousePos(canvas,e)) //console.log(getMousePos(canvas,e))
e.preventDefault()
var mousepos = getMousePos(canvas,e) var mousepos = getMousePos(canvas,e)
LAST_MOUSE_X=mousepos.x LAST_MOUSE_X=mousepos.x
LAST_MOUSE_Y=mousepos.y LAST_MOUSE_Y=mousepos.y

Loading…
Cancel
Save