rezoner / playground

Playground.js is a framework for your javascript based games. It gives you out-of-box access to essentials like mouse, keyboard, sound and well designed architecture that you can expand to your needs.
MIT License
466 stars 50 forks source link

[Minor Bug] TypeError on Mousemove before Loading Screen is shown #2

Closed nicoell closed 9 years ago

nicoell commented 9 years ago

If you move the mouse before the loading screen is shown an undefined Error is thrown:

TypeError: this.elementOffset is undefined
 -> this.x = this.mousemoveEvent.x = (e.pageX - this.elementOffset.x - this.app.offs...

playground.js (Row 1749, Column 4)

Nothing critical but it's not that nice.

rezoner commented 9 years ago

Thank you investigating. Guess I am a patient person as I've not encountered it :)

rezoner commented 9 years ago

Fixed and pushed updated version. Please reopen the issue if it's still there.