Ver Fonte

TrackballControls: Added event.preventDefault() in touchstart. See #14182

Mr.doob há 7 anos atrás
pai
commit
1fe92061f3
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      examples/js/controls/TrackballControls.js

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

@@ -492,6 +492,8 @@ THREE.TrackballControls = function ( object, domElement ) {
 	function touchstart( event ) {
 
 		if ( _this.enabled === false ) return;
+		
+		event.preventDefault();
 
 		switch ( event.touches.length ) {