evanw / lightgl.js

A lightweight WebGL library
MIT License
1.52k stars 146 forks source link

Right mouse button event #7

Closed dronus closed 12 years ago

dronus commented 12 years ago

When a viewer.js camera is controlled by lightgl.js mouse events, the use of the right button opens the browsers popup menu, but starts the movement either. The camera is then controlled by any mouse move forever, despite there is no button pressed anymore. That cannot be stopped by pressing buttons again either.

This bug can be seen at the csg.js demo site for example.

evanw commented 12 years ago

I didn't notice that, good catch. Fixed in 5fb007b.