Explorar o código

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

Mr.doob %!s(int64=7) %!d(string=hai) anos
pai
achega
1fe92061f3
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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 ) {