hugosaintemarie / magic-maze

Online version of board game "Magic Maze"
https://magicmaze.herokuapp.com
MIT License
20 stars 11 forks source link

Unable to move heroes after browser window is resized #43

Closed rcjsuen closed 3 years ago

rcjsuen commented 3 years ago
  1. Start a one-player game.
  2. Move some heroes around, this should work.
  3. Now resize your browser's window a few times.
  4. Try moving some heroes around again, this will now stop working.
  5. Open the debugger panel of the browser and you should see an error.

Production:

Uncaught TypeError: Cannot read property 'nodeName' of null
    at Object.mouseMove (bundle.js:1)
    at e (bundle.js:1)

Local Development:

events.js:262 Uncaught TypeError: Cannot read property 'nodeName' of null
    at Object.mouseMove (events.js:262)
    at draw (user.js:90)
rcjsuen commented 3 years ago

Fixed by #44.