소스 검색

Examples: Fixed physics_ammo mouse event.

Mr.doob 4 년 전
부모
커밋
9f2226e76d
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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 ) {