News for hackers. Stuff that matters.
Re:GuriVR – Describe your VR experience and the editor will ... by eridius on Wednesday November 23, 2016 @02:45PM (#13025255)
If you want camera-drag with right-click, ideally you'd just hide the mouse (and capture it so it can't leave the bounds of the view). That's normally what games do when they have right-click dragging in the fashion you describe.

That said, I have no idea if JavaScript can capture the mouse like that.

Re:GuriVR – Describe your VR experience and the editor will ... by Stratoscope on Wednesday November 23, 2016 @03:11PM (#13025472)
It can! For a capture that lasts until the mouse button is released:

https://developer.mozilla.org/en-US/docs/Web/API/Element/set...

Or for a capture that works even if the mouse button is not pressed, and remains until the Esc key is pressed:

https://developer.mozilla.org/en-US/docs/Web/API/Pointer_Loc...

The first option would be the one to use for right button dragging.

Re:GuriVR – Describe your VR experience and the editor will ... by moron4hire on Wednesday November 23, 2016 @05:53PM (#13026451)
The first one is Firefox only, the second one is everything-except-Safari.