Browse Source

Merge pull request #12408 from ADRG1T/dev

TrackBallControls: mousewheel handler should take in consideration noZoom flag
Mr.doob 7 years ago
parent
commit
d4e771707c
1 changed files with 2 additions and 0 deletions
  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 ) {
 	function mousewheel( event ) {
 
 
 		if ( _this.enabled === false ) return;
 		if ( _this.enabled === false ) return;
+		
+		if ( _this.noZoom === true ) return;
 
 
 		event.preventDefault();
 		event.preventDefault();
 		event.stopPropagation();
 		event.stopPropagation();