You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When custom video controls such as a seek bar are created, mouse events from those bubble to the window causing unwanted camera movement. The element used here should be configurable and/or the methods bound to the window should be configurable.
As a work-around I've modified a local copy of this file with the following,
To really get rid of all the implicit document.body assumptions, you have to modify the polyfill, boilerplate, and VREffect.js. Also, the polyfill assumes there is one window, so if you try making multiple webgl windows, they all move with the mouse. To really make this work (for things like VR slideshows) will require a significant overhaul.
mouse-controls are attached to the window, behaviour should be configurable
https://github.com/borismus/webvr-polyfill/blob/master/src/mouse-keyboard-position-sensor-vr-device.js#L37-L40
When custom video controls such as a seek bar are created, mouse events from those bubble to the window causing unwanted camera movement. The element used here should be configurable and/or the methods bound to the window should be configurable.
As a work-around I've modified a local copy of this file with the following,
The text was updated successfully, but these errors were encountered: