Explorar el Código

Update TrackballControls.js

ADRG1T hace 7 años
padre
commit
a26a27a785
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      examples/js/controls/TrackballControls.js

+ 2 - 0
examples/js/controls/TrackballControls.js

@@ -469,6 +469,8 @@ THREE.TrackballControls = function ( object, domElement ) {
 	function mousewheel( event ) {
 
 		if ( _this.enabled === false ) return;
+		
+		if ( _this.noZoom === true ) return;
 
 		event.preventDefault();
 		event.stopPropagation();