2
0
Эх сурвалжийг харах

Examples: Fixed physics_ammo mouse event.

Mr.doob 4 жил өмнө
parent
commit
9f2226e76d

+ 1 - 1
examples/physics_ammo_break.html

@@ -376,7 +376,7 @@
 
 		function initInput() {
 
-			window.addEventListener( 'mousedown', function ( event ) {
+			window.addEventListener( 'pointerdown', function ( event ) {
 
 				mouseCoords.set(
 					( event.clientX / window.innerWidth ) * 2 - 1,

+ 1 - 1
examples/physics_ammo_volume.html

@@ -345,7 +345,7 @@
 
 			function initInput() {
 
-				window.addEventListener( 'mousedown', function ( event ) {
+				window.addEventListener( 'pointerdown', function ( event ) {
 
 					if ( ! clickRequest ) {