Explorar el Código

Allow zooming while rotating (#8634)

mcwillso hace 9 años
padre
commit
a58012bf39
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      examples/js/controls/OrbitControls.js

+ 1 - 1
examples/js/controls/OrbitControls.js

@@ -756,7 +756,7 @@ THREE.OrbitControls = function ( object, domElement ) {
 
 	function onMouseWheel( event ) {
 
-		if ( scope.enabled === false || scope.enableZoom === false || state !== STATE.NONE ) return;
+		if ( scope.enabled === false || scope.enableZoom === false || ( state !== STATE.NONE && state !== STATE.ROTATE ) ) return;
 
 		event.preventDefault();
 		event.stopPropagation();