Просмотр исходного кода

Examples: avoid relying on implicit event parameter (#30792)

Co-authored-by: Samuel Rigaud <rigaud@gmail.com>
Samuel Rigaud 11 месяцев назад
Родитель
Сommit
5c5a685eeb

+ 5 - 5
examples/webgl_geometry_nurbs.html

@@ -170,9 +170,9 @@
 					object.position.set( - 400, 100, 0 );
 					object.scale.multiplyScalar( 1 );
 					group.add( object );
-			
+
 				}
-			
+
 				// NURBS volume
 				{
 
@@ -313,9 +313,9 @@
 					objectSide.position.set( 400, 100, 0 );
 					objectSide.scale.multiplyScalar( 0.5 );
 					group.add( objectSide );
-			
+
 				}
-			
+
 				//
 
 				renderer = new THREE.WebGLRenderer( { antialias: true } );
@@ -371,7 +371,7 @@
 
 			}
 
-			function onPointerUp() {
+			function onPointerUp( event ) {
 
 				if ( event.isPrimary === false ) return;
 

+ 1 - 1
examples/webgl_geometry_shapes.html

@@ -406,7 +406,7 @@
 
 			}
 
-			function onPointerUp() {
+			function onPointerUp( event ) {
 
 				if ( event.isPrimary === false ) return;
 

+ 1 - 1
examples/webgl_geometry_text.html

@@ -372,7 +372,7 @@
 
 			}
 
-			function onPointerUp() {
+			function onPointerUp( event ) {
 
 				if ( event.isPrimary === false ) return;
 

+ 1 - 1
examples/webgl_loader_ttf.html

@@ -268,7 +268,7 @@
 
 			}
 
-			function onPointerUp() {
+			function onPointerUp( event ) {
 
 				if ( event.isPrimary === false ) return;
 

+ 1 - 1
examples/webgl_panorama_equirectangular.html

@@ -106,7 +106,7 @@
 
 			}
 
-			function onPointerUp() {
+			function onPointerUp( event ) {
 
 				if ( event.isPrimary === false ) return;
 

粤ICP备19079148号