pex-gl / pex-cam

Cameras models and controllers for 3D rendering in PEX.
MIT License
2 stars 3 forks source link

Stop using e.offsetX #13

Closed vorg closed 5 years ago

vorg commented 6 years ago

Use mouse-event-offset instead to prevent orbiter jumping when you move mouse outside of webgl canvas.

mouse-event-offset Computes the [ offsetX, offsetY ] from a mouse or touch event, relative to the top left of the target element.

vorg commented 5 years ago

Using mouse-event-offset now