Explorar o código

Examples: Fixed physics_ammo mouse event.

Mr.doob %!s(int64=4) %!d(string=hai) anos
pai
achega
9f2226e76d
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      examples/physics_ammo_break.html
  2. 1 1
      examples/physics_ammo_volume.html

+ 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 ) {