File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -715,14 +715,6 @@ class OrbitControls extends EventDispatcher {
715715 }
716716
717717 function onMouseDown ( event : MouseEvent ) {
718- // Prevent the browser from scrolling.
719- event . preventDefault ( )
720-
721- // Manually set the focus since calling preventDefault above
722- // prevents the browser from setting it automatically.
723-
724- scope . domElement ?. focus ? scope . domElement . focus ( ) : window . focus ( )
725-
726718 let mouseAction
727719
728720 switch ( event . button ) {
@@ -787,8 +779,6 @@ class OrbitControls extends EventDispatcher {
787779 function onMouseMove ( event : MouseEvent ) {
788780 if ( scope . enabled === false ) return
789781
790- event . preventDefault ( )
791-
792782 switch ( state ) {
793783 case STATE . ROTATE :
794784 if ( scope . enableRotate === false ) return
You can’t perform that action at this time.
0 commit comments