Browse Source

Merge pull request #20911 from ajflores1604/unreal_bloom_selective_mobile

Examples: mobile support for unreal_bloom_selective example
Mr.doob 4 years ago
parent
commit
e67ceffe23
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/webgl_postprocessing_unreal_bloom_selective.html

+ 2 - 2
examples/webgl_postprocessing_unreal_bloom_selective.html

@@ -122,7 +122,7 @@
 
 			const mouse = new THREE.Vector2();
 
-			window.addEventListener( 'click', onDocumentMouseClick, false );
+			window.addEventListener( 'pointerdown', onPointerDown, false );
 
 			const gui = new GUI();
 
@@ -178,7 +178,7 @@
 
 			setupScene();
 
-			function onDocumentMouseClick( event ) {
+			function onPointerDown( event ) {
 
 				event.preventDefault();