An option to prevent preventDefault in OrbitControls

The use case is 3D view having 100%% width of the page, normally we would not want the dragging in 3D view to scroll the page, but in thin mobile windows there is no much else to be done. Either leave padding, or transparent div-s on top of 3D that block touches, both of these methods suck. If in my app I only need controls to rotate horizontally, I’m fine with vertical drag scrolling the page.

Author: Fantashit

1 thought on “An option to prevent preventDefault in OrbitControls

Comments are closed.