jeromeetienne / threex

Game Extensions for three.js
http://www.threejsgames.com/extensions/
MIT License
334 stars 59 forks source link

DomEvents relative to domElement #32

Open jorgenfb opened 11 years ago

jorgenfb commented 11 years ago

Mouse positions are now calculated and normalized relative to the DOM element (this._domElement) instead of the document.

The canvas can now be positioned anywhere in the document, not just in the upper left corner.