Skip to content

Commit a58012b

Browse files
BroHammiemrdoob
authored andcommitted
Allow zooming while rotating (mrdoob#8634)
1 parent bb0ff5d commit a58012b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/js/controls/OrbitControls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ THREE.OrbitControls = function ( object, domElement ) {
756756

757757
function onMouseWheel( event ) {
758758

759-
if ( scope.enabled === false || scope.enableZoom === false || state !== STATE.NONE ) return;
759+
if ( scope.enabled === false || scope.enableZoom === false || ( state !== STATE.NONE && state !== STATE.ROTATE ) ) return;
760760

761761
event.preventDefault();
762762
event.stopPropagation();

0 commit comments

Comments
 (0)