mrdoob / three.js

JavaScript 3D Library.
https://threejs.org/
MIT License
102.81k stars 35.38k forks source link

Bug: /examples/js/controls/OrbitControls.js:655 event.preventDefault(); #10557

Closed Seagat2011 closed 7 years ago

Seagat2011 commented 7 years ago
Description of the problem

This is a bug. preventDefault() cancels other mousedown/select operations (eg. inside dat.gui.min.js client frame )

..A better approach would be to utilize a filter

Browser
WestLangley commented 7 years ago

Did you use this pattern?

controls = new THREE.OrbitControls( camera, renderer.domElement );
Seagat2011 commented 7 years ago

Sorry, No

src: https://github.com/josdirksen/learning-threejs/chapter-08/17-load-babylon.html

var orbit = new THREE.OrbitControls(camera);