Ver código fonte

Update TrackballControls.js

ADRG1T 7 anos atrás
pai
commit
a26a27a785
1 arquivos alterados com 2 adições e 0 exclusões
  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();