diff --git a/examples/css3d_molecules.html b/examples/css3d_molecules.html
index 81ce56273f80b5..43b1fc36480f0a 100644
--- a/examples/css3d_molecules.html
+++ b/examples/css3d_molecules.html
@@ -175,7 +175,7 @@
const url = "models/pdb/" + MOLECULES[ m ];
- button.addEventListener( 'click', generateButtonCallback( url ), false );
+ button.addEventListener( 'click', generateButtonCallback( url ) );
}
diff --git a/examples/css3d_panorama.html b/examples/css3d_panorama.html
index 8071f9366280fd..8004b079b9665e 100644
--- a/examples/css3d_panorama.html
+++ b/examples/css3d_panorama.html
@@ -88,9 +88,9 @@
//
document.body.style.touchAction = 'none';
- document.body.addEventListener( 'pointerdown', onPointerDown, false );
+ document.body.addEventListener( 'pointerdown', onPointerDown );
- document.addEventListener( 'wheel', onDocumentMouseWheel, false );
+ document.addEventListener( 'wheel', onDocumentMouseWheel );
window.addEventListener( 'resize', onWindowResize );
@@ -112,8 +112,8 @@
pointerX = event.clientX;
pointerY = event.clientY;
- document.addEventListener( 'pointermove', onPointerMove, false );
- document.addEventListener( 'pointerup', onPointerUp, false );
+ document.addEventListener( 'pointermove', onPointerMove );
+ document.addEventListener( 'pointerup', onPointerUp );
}
diff --git a/examples/css3d_panorama_deviceorientation.html b/examples/css3d_panorama_deviceorientation.html
index 7ed931c0504ce2..afcfec6f9d70b8 100644
--- a/examples/css3d_panorama_deviceorientation.html
+++ b/examples/css3d_panorama_deviceorientation.html
@@ -28,7 +28,7 @@
init();
animate();
- }, false );
+ } );
function init() {
diff --git a/examples/css3d_periodictable.html b/examples/css3d_periodictable.html
index 836465ee34f3f5..5b23c515d67ea6 100644
--- a/examples/css3d_periodictable.html
+++ b/examples/css3d_periodictable.html
@@ -351,28 +351,28 @@
transform( targets.table, 2000 );
- }, false );
+ } );
const buttonSphere = document.getElementById( 'sphere' );
buttonSphere.addEventListener( 'click', function () {
transform( targets.sphere, 2000 );
- }, false );
+ } );
const buttonHelix = document.getElementById( 'helix' );
buttonHelix.addEventListener( 'click', function () {
transform( targets.helix, 2000 );
- }, false );
+ } );
const buttonGrid = document.getElementById( 'grid' );
buttonGrid.addEventListener( 'click', function () {
transform( targets.grid, 2000 );
- }, false );
+ } );
transform( targets.table, 2000 );
diff --git a/examples/css3d_sprites.html b/examples/css3d_sprites.html
index f41a8fbbe0607b..db21793d559818 100644
--- a/examples/css3d_sprites.html
+++ b/examples/css3d_sprites.html
@@ -64,7 +64,7 @@
transition();
- }, false );
+ } );
image.src = 'textures/sprite.png';
// Plane
diff --git a/examples/games_fps.html b/examples/games_fps.html
index 93653f92fe8b39..1cc1f891715105 100644
--- a/examples/games_fps.html
+++ b/examples/games_fps.html
@@ -110,19 +110,19 @@
keyStates[ event.code ] = true;
- }, false );
+ } );
document.addEventListener( 'keyup', ( event ) => {
keyStates[ event.code ] = false;
- }, false );
+ } );
document.addEventListener( 'mousedown', () => {
document.body.requestPointerLock();
- }, false );
+ } );
document.body.addEventListener( 'mousemove', ( event ) => {
@@ -133,7 +133,7 @@
}
- }, false );
+ } );
window.addEventListener( 'resize', onWindowResize );
@@ -157,7 +157,7 @@
sphereIdx = ( sphereIdx + 1 ) % spheres.length;
- }, false );
+ } );
function playerCollitions() {
diff --git a/examples/misc_controls_deviceorientation.html b/examples/misc_controls_deviceorientation.html
index 7776b7e61755e8..36481778e5d37b 100644
--- a/examples/misc_controls_deviceorientation.html
+++ b/examples/misc_controls_deviceorientation.html
@@ -29,7 +29,7 @@
init();
animate();
- }, false );
+ } );
function init() {
diff --git a/examples/misc_controls_drag.html b/examples/misc_controls_drag.html
index bcb357bde39647..350cd3609beb19 100644
--- a/examples/misc_controls_drag.html
+++ b/examples/misc_controls_drag.html
@@ -111,9 +111,9 @@
window.addEventListener( 'resize', onWindowResize );
- document.addEventListener( 'click', onClick, false );
- window.addEventListener( 'keydown', onKeyDown, false );
- window.addEventListener( 'keyup', onKeyUp, false );
+ document.addEventListener( 'click', onClick );
+ window.addEventListener( 'keydown', onKeyDown );
+ window.addEventListener( 'keyup', onKeyUp );
render();
diff --git a/examples/misc_controls_pointerlock.html b/examples/misc_controls_pointerlock.html
index 737062a470334a..e76a70a291531a 100644
--- a/examples/misc_controls_pointerlock.html
+++ b/examples/misc_controls_pointerlock.html
@@ -105,7 +105,7 @@
controls.lock();
- }, false );
+ } );
controls.addEventListener( 'lock', function () {
@@ -184,8 +184,8 @@
};
- document.addEventListener( 'keydown', onKeyDown, false );
- document.addEventListener( 'keyup', onKeyUp, false );
+ document.addEventListener( 'keydown', onKeyDown );
+ document.addEventListener( 'keyup', onKeyUp );
raycaster = new THREE.Raycaster( new THREE.Vector3(), new THREE.Vector3( 0, - 1, 0 ), 0, 10 );
diff --git a/examples/misc_exporter_obj.html b/examples/misc_exporter_obj.html
index a9a3385900cfc1..e7eb475cb37b76 100644
--- a/examples/misc_exporter_obj.html
+++ b/examples/misc_exporter_obj.html
@@ -151,10 +151,10 @@
addGeometry( 1 );
- window.addEventListener( 'click', onWindowClick, false );
+ window.addEventListener( 'click', onWindowClick );
window.addEventListener( 'resize', onWindowResize );
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
- document.addEventListener( 'mouseover', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
+ document.addEventListener( 'mouseover', onDocumentMouseMove );
document.getElementById( 'triangle' ).addEventListener( 'click', function () {
diff --git a/examples/misc_lookat.html b/examples/misc_lookat.html
index 62a82d7079094c..124f8a8a5cacd9 100644
--- a/examples/misc_lookat.html
+++ b/examples/misc_lookat.html
@@ -34,7 +34,7 @@
let windowHalfX = window.innerWidth / 2;
let windowHalfY = window.innerHeight / 2;
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
init();
animate();
diff --git a/examples/physics_ammo_break.html b/examples/physics_ammo_break.html
index cee9f1b454adc8..ea502abb0c1285 100644
--- a/examples/physics_ammo_break.html
+++ b/examples/physics_ammo_break.html
@@ -407,7 +407,7 @@
pos.multiplyScalar( 24 );
ballBody.setLinearVelocity( new Ammo.btVector3( pos.x, pos.y, pos.z ) );
- }, false );
+ } );
}
diff --git a/examples/physics_ammo_cloth.html b/examples/physics_ammo_cloth.html
index e2807de189dff3..627e04e50a5553 100644
--- a/examples/physics_ammo_cloth.html
+++ b/examples/physics_ammo_cloth.html
@@ -363,13 +363,13 @@
}
- }, false );
+ } );
window.addEventListener( 'keyup', function () {
armMovement = 0;
- }, false );
+ } );
}
diff --git a/examples/physics_ammo_rope.html b/examples/physics_ammo_rope.html
index 6cdb19ef6b8b28..dd12a9a5a0b11a 100644
--- a/examples/physics_ammo_rope.html
+++ b/examples/physics_ammo_rope.html
@@ -388,13 +388,13 @@
}
- }, false );
+ } );
window.addEventListener( 'keyup', function () {
armMovement = 0;
- }, false );
+ } );
}
diff --git a/examples/physics_ammo_volume.html b/examples/physics_ammo_volume.html
index 273d0bb8497e36..e76b27e4c5fd74 100644
--- a/examples/physics_ammo_volume.html
+++ b/examples/physics_ammo_volume.html
@@ -358,7 +358,7 @@
}
- }, false );
+ } );
}
diff --git a/examples/webgl_camera.html b/examples/webgl_camera.html
index dabebb40c59da8..3a576a5a0a14aa 100644
--- a/examples/webgl_camera.html
+++ b/examples/webgl_camera.html
@@ -134,7 +134,7 @@
//
window.addEventListener( 'resize', onWindowResize );
- document.addEventListener( 'keydown', onKeyDown, false );
+ document.addEventListener( 'keydown', onKeyDown );
}
diff --git a/examples/webgl_camera_cinematic.html b/examples/webgl_camera_cinematic.html
index 0faf1f67e5ead7..71b7e9c8bac0d3 100644
--- a/examples/webgl_camera_cinematic.html
+++ b/examples/webgl_camera_cinematic.html
@@ -79,7 +79,7 @@
stats = new Stats();
document.body.appendChild( stats.dom );
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
window.addEventListener( 'resize', onWindowResize );
diff --git a/examples/webgl_camera_logarithmicdepthbuffer.html b/examples/webgl_camera_logarithmicdepthbuffer.html
index 0d39178f3c5f87..25f0a954ce8c69 100644
--- a/examples/webgl_camera_logarithmicdepthbuffer.html
+++ b/examples/webgl_camera_logarithmicdepthbuffer.html
@@ -127,9 +127,9 @@
border = document.getElementById( 'renderer_border' );
border.addEventListener( 'pointerdown', onBorderPointerDown );
- window.addEventListener( 'mousemove', onMouseMove, false );
+ window.addEventListener( 'mousemove', onMouseMove );
window.addEventListener( 'resize', onWindowResize );
- window.addEventListener( 'wheel', onMouseWheel, false );
+ window.addEventListener( 'wheel', onMouseWheel );
}
diff --git a/examples/webgl_decals.html b/examples/webgl_decals.html
index 3268e2940fbf34..59e8d72483d3ee 100644
--- a/examples/webgl_decals.html
+++ b/examples/webgl_decals.html
@@ -134,7 +134,7 @@
moved = false;
- }, false );
+ } );
window.addEventListener( 'pointerup', function ( event ) {
diff --git a/examples/webgl_effects_anaglyph.html b/examples/webgl_effects_anaglyph.html
index 2631c9b5e497af..6bd02d720d263f 100644
--- a/examples/webgl_effects_anaglyph.html
+++ b/examples/webgl_effects_anaglyph.html
@@ -28,7 +28,7 @@
let windowHalfX = window.innerWidth / 2;
let windowHalfY = window.innerHeight / 2;
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
init();
animate();
diff --git a/examples/webgl_effects_parallaxbarrier.html b/examples/webgl_effects_parallaxbarrier.html
index 88b6045f4df287..5b94154de2b110 100644
--- a/examples/webgl_effects_parallaxbarrier.html
+++ b/examples/webgl_effects_parallaxbarrier.html
@@ -29,7 +29,7 @@
let windowHalfX = window.innerWidth / 2;
let windowHalfY = window.innerHeight / 2;
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
init();
animate();
diff --git a/examples/webgl_effects_stereo.html b/examples/webgl_effects_stereo.html
index 57b44ed1087a7f..041307fa490877 100644
--- a/examples/webgl_effects_stereo.html
+++ b/examples/webgl_effects_stereo.html
@@ -27,7 +27,7 @@
let windowHalfX = window.innerWidth / 2;
let windowHalfY = window.innerHeight / 2;
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
init();
animate();
diff --git a/examples/webgl_geometry_colors.html b/examples/webgl_geometry_colors.html
index d5fa8a9f8c6c7f..927109463a80b6 100644
--- a/examples/webgl_geometry_colors.html
+++ b/examples/webgl_geometry_colors.html
@@ -156,7 +156,7 @@
stats = new Stats();
container.appendChild( stats.dom );
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
//
diff --git a/examples/webgl_geometry_hierarchy.html b/examples/webgl_geometry_hierarchy.html
index 11642e6e13b42c..8953dc4174d7a3 100644
--- a/examples/webgl_geometry_hierarchy.html
+++ b/examples/webgl_geometry_hierarchy.html
@@ -71,7 +71,7 @@
//
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
//
diff --git a/examples/webgl_geometry_hierarchy2.html b/examples/webgl_geometry_hierarchy2.html
index 82a227e866b5da..ddf263d470d79d 100644
--- a/examples/webgl_geometry_hierarchy2.html
+++ b/examples/webgl_geometry_hierarchy2.html
@@ -126,7 +126,7 @@
//
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
//
diff --git a/examples/webgl_geometry_nurbs.html b/examples/webgl_geometry_nurbs.html
index 118406776ec889..8e84a4be4fe093 100644
--- a/examples/webgl_geometry_nurbs.html
+++ b/examples/webgl_geometry_nurbs.html
@@ -170,7 +170,7 @@
container.appendChild( stats.dom );
container.style.touchAction = 'none';
- container.addEventListener( 'pointerdown', onPointerDown, false );
+ container.addEventListener( 'pointerdown', onPointerDown );
//
@@ -198,8 +198,8 @@
pointerXOnPointerDown = event.clientX - windowHalfX;
targetRotationOnPointerDown = targetRotation;
- document.addEventListener( 'pointermove', onPointerMove, false );
- document.addEventListener( 'pointerup', onPointerUp, false );
+ document.addEventListener( 'pointermove', onPointerMove );
+ document.addEventListener( 'pointerup', onPointerUp );
}
diff --git a/examples/webgl_geometry_shapes.html b/examples/webgl_geometry_shapes.html
index 59a6f67eacda4d..635a996df473db 100644
--- a/examples/webgl_geometry_shapes.html
+++ b/examples/webgl_geometry_shapes.html
@@ -353,7 +353,7 @@
container.appendChild( stats.dom );
container.style.touchAction = 'none';
- container.addEventListener( 'pointerdown', onPointerDown, false );
+ container.addEventListener( 'pointerdown', onPointerDown );
//
@@ -381,8 +381,8 @@
pointerXOnPointerDown = event.clientX - windowHalfX;
targetRotationOnPointerDown = targetRotation;
- document.addEventListener( 'pointermove', onPointerMove, false );
- document.addEventListener( 'pointerup', onPointerUp, false );
+ document.addEventListener( 'pointermove', onPointerMove );
+ document.addEventListener( 'pointerup', onPointerUp );
}
diff --git a/examples/webgl_geometry_spline_editor.html b/examples/webgl_geometry_spline_editor.html
index 8c1dc395732306..d1dafcf97f3463 100644
--- a/examples/webgl_geometry_spline_editor.html
+++ b/examples/webgl_geometry_spline_editor.html
@@ -147,9 +147,9 @@
} );
- document.addEventListener( 'pointerdown', onPointerDown, false );
- document.addEventListener( 'pointerup', onPointerUp, false );
- document.addEventListener( 'pointermove', onPointerMove, false );
+ document.addEventListener( 'pointerdown', onPointerDown );
+ document.addEventListener( 'pointerup', onPointerUp );
+ document.addEventListener( 'pointermove', onPointerMove );
/*******
* Curves
diff --git a/examples/webgl_geometry_terrain_raycast.html b/examples/webgl_geometry_terrain_raycast.html
index 31c62b9cc2839d..fc7ff0952dea8f 100644
--- a/examples/webgl_geometry_terrain_raycast.html
+++ b/examples/webgl_geometry_terrain_raycast.html
@@ -103,7 +103,7 @@
helper = new THREE.Mesh( geometryHelper, new THREE.MeshNormalMaterial() );
scene.add( helper );
- container.addEventListener( 'mousemove', onMouseMove, false );
+ container.addEventListener( 'mousemove', onMouseMove );
stats = new Stats();
container.appendChild( stats.dom );
diff --git a/examples/webgl_geometry_text.html b/examples/webgl_geometry_text.html
index 54d705a8e06d15..7f635fcec8eb2c 100644
--- a/examples/webgl_geometry_text.html
+++ b/examples/webgl_geometry_text.html
@@ -194,10 +194,10 @@
// EVENTS
container.style.touchAction = 'none';
- container.addEventListener( 'pointerdown', onPointerDown, false );
+ container.addEventListener( 'pointerdown', onPointerDown );
- document.addEventListener( 'keypress', onDocumentKeyPress, false );
- document.addEventListener( 'keydown', onDocumentKeyDown, false );
+ document.addEventListener( 'keypress', onDocumentKeyPress );
+ document.addEventListener( 'keydown', onDocumentKeyDown );
document.getElementById( "color" ).addEventListener( 'click', function () {
@@ -206,7 +206,7 @@
updatePermalink();
- }, false );
+ } );
document.getElementById( "font" ).addEventListener( 'click', function () {
@@ -216,7 +216,7 @@
loadFont();
- }, false );
+ } );
document.getElementById( "weight" ).addEventListener( 'click', function () {
@@ -233,7 +233,7 @@
loadFont();
- }, false );
+ } );
document.getElementById( "bevel" ).addEventListener( 'click', function () {
@@ -241,7 +241,7 @@
refreshText();
- }, false );
+ } );
//
@@ -405,8 +405,8 @@
pointerXOnPointerDown = event.clientX - windowHalfX;
targetRotationOnPointerDown = targetRotation;
- document.addEventListener( 'pointermove', onPointerMove, false );
- document.addEventListener( 'pointerup', onPointerUp, false );
+ document.addEventListener( 'pointermove', onPointerMove );
+ document.addEventListener( 'pointerup', onPointerUp );
}
diff --git a/examples/webgl_gpgpu_birds.html b/examples/webgl_gpgpu_birds.html
index b8400478a5a0c3..42fd02727006f1 100644
--- a/examples/webgl_gpgpu_birds.html
+++ b/examples/webgl_gpgpu_birds.html
@@ -444,7 +444,7 @@
container.appendChild( stats.dom );
container.style.touchAction = 'none';
- container.addEventListener( 'pointermove', onPointerMove, false );
+ container.addEventListener( 'pointermove', onPointerMove );
//
diff --git a/examples/webgl_gpgpu_birds_gltf.html b/examples/webgl_gpgpu_birds_gltf.html
index 4ba9f9120b71f6..f242c2d79cb719 100644
--- a/examples/webgl_gpgpu_birds_gltf.html
+++ b/examples/webgl_gpgpu_birds_gltf.html
@@ -387,7 +387,7 @@
container.appendChild( stats.dom );
container.style.touchAction = 'none';
- container.addEventListener( 'pointermove', onPointerMove, false );
+ container.addEventListener( 'pointermove', onPointerMove );
window.addEventListener( 'resize', onWindowResize );
diff --git a/examples/webgl_gpgpu_water.html b/examples/webgl_gpgpu_water.html
index b9cba8234138f7..6590b43f02b68f 100644
--- a/examples/webgl_gpgpu_water.html
+++ b/examples/webgl_gpgpu_water.html
@@ -317,7 +317,7 @@
container.appendChild( stats.dom );
container.style.touchAction = 'none';
- container.addEventListener( 'pointermove', onPointerMove, false );
+ container.addEventListener( 'pointermove', onPointerMove );
document.addEventListener( 'keydown', function ( event ) {
@@ -329,7 +329,7 @@
}
- }, false );
+ } );
window.addEventListener( 'resize', onWindowResize );
diff --git a/examples/webgl_instancing_raycast.html b/examples/webgl_instancing_raycast.html
index 872838904d3048..13a3d87f9b906a 100644
--- a/examples/webgl_instancing_raycast.html
+++ b/examples/webgl_instancing_raycast.html
@@ -92,7 +92,7 @@
document.body.appendChild( stats.dom );
window.addEventListener( 'resize', onWindowResize );
- document.addEventListener( 'mousemove', onMouseMove, false );
+ document.addEventListener( 'mousemove', onMouseMove );
}
diff --git a/examples/webgl_interactive_buffergeometry.html b/examples/webgl_interactive_buffergeometry.html
index e40a58dd672b79..a4dddcc1d64a1c 100644
--- a/examples/webgl_interactive_buffergeometry.html
+++ b/examples/webgl_interactive_buffergeometry.html
@@ -200,7 +200,7 @@
//
window.addEventListener( 'resize', onWindowResize );
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
}
diff --git a/examples/webgl_interactive_cubes.html b/examples/webgl_interactive_cubes.html
index 53636acc1c1ff1..dac9bd2bf59bcb 100644
--- a/examples/webgl_interactive_cubes.html
+++ b/examples/webgl_interactive_cubes.html
@@ -85,7 +85,7 @@
stats = new Stats();
container.appendChild( stats.dom );
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
//
diff --git a/examples/webgl_interactive_cubes_ortho.html b/examples/webgl_interactive_cubes_ortho.html
index 408c21064ba358..5f8f5826f6cfe1 100644
--- a/examples/webgl_interactive_cubes_ortho.html
+++ b/examples/webgl_interactive_cubes_ortho.html
@@ -87,7 +87,7 @@
stats = new Stats();
container.appendChild( stats.dom );
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
//
diff --git a/examples/webgl_interactive_lines.html b/examples/webgl_interactive_lines.html
index 66e60b45538ca3..3e986065db9680 100644
--- a/examples/webgl_interactive_lines.html
+++ b/examples/webgl_interactive_lines.html
@@ -136,7 +136,7 @@
stats = new Stats();
container.appendChild( stats.dom );
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
//
diff --git a/examples/webgl_interactive_points.html b/examples/webgl_interactive_points.html
index 3df0141f53581e..219f346a6151fa 100644
--- a/examples/webgl_interactive_points.html
+++ b/examples/webgl_interactive_points.html
@@ -154,7 +154,7 @@
//
window.addEventListener( 'resize', onWindowResize );
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
}
diff --git a/examples/webgl_interactive_raycasting_points.html b/examples/webgl_interactive_raycasting_points.html
index d83ba79bde5ac1..1583710d9266e2 100644
--- a/examples/webgl_interactive_raycasting_points.html
+++ b/examples/webgl_interactive_raycasting_points.html
@@ -209,7 +209,7 @@
//
window.addEventListener( 'resize', onWindowResize );
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
}
diff --git a/examples/webgl_interactive_voxelpainter.html b/examples/webgl_interactive_voxelpainter.html
index 3954ec5b181295..cbbcaf15d1b069 100644
--- a/examples/webgl_interactive_voxelpainter.html
+++ b/examples/webgl_interactive_voxelpainter.html
@@ -91,10 +91,10 @@
renderer.setSize( window.innerWidth, window.innerHeight );
document.body.appendChild( renderer.domElement );
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
- document.addEventListener( 'mousedown', onDocumentMouseDown, false );
- document.addEventListener( 'keydown', onDocumentKeyDown, false );
- document.addEventListener( 'keyup', onDocumentKeyUp, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
+ document.addEventListener( 'mousedown', onDocumentMouseDown );
+ document.addEventListener( 'keydown', onDocumentKeyDown );
+ document.addEventListener( 'keyup', onDocumentKeyUp );
//
diff --git a/examples/webgl_lightningstrike.html b/examples/webgl_lightningstrike.html
index a7c823ff97b23d..ea866a0b1c37de 100644
--- a/examples/webgl_lightningstrike.html
+++ b/examples/webgl_lightningstrike.html
@@ -566,7 +566,7 @@
// THREE.Sphere mouse raycasting
container.style.touchAction = 'none';
- container.addEventListener( 'pointermove', onPointerMove, false );
+ container.addEventListener( 'pointermove', onPointerMove );
function onPointerMove( event ) {
diff --git a/examples/webgl_lines_colors.html b/examples/webgl_lines_colors.html
index f1401277394ce2..388b693dc5806a 100644
--- a/examples/webgl_lines_colors.html
+++ b/examples/webgl_lines_colors.html
@@ -155,7 +155,7 @@
//
document.body.style.touchAction = 'none';
- document.body.addEventListener( 'pointermove', onPointerMove, false );
+ document.body.addEventListener( 'pointermove', onPointerMove );
//
diff --git a/examples/webgl_lines_sphere.html b/examples/webgl_lines_sphere.html
index b0592fa5a8abd4..9b099decfa5e15 100644
--- a/examples/webgl_lines_sphere.html
+++ b/examples/webgl_lines_sphere.html
@@ -63,7 +63,7 @@
document.body.appendChild( renderer.domElement );
document.body.style.touchAction = 'none';
- document.body.addEventListener( 'pointermove', onPointerMove, false );
+ document.body.addEventListener( 'pointermove', onPointerMove );
//
diff --git a/examples/webgl_loader_3dm.html b/examples/webgl_loader_3dm.html
index a326220e1f6c25..9a2d492c4c5c87 100644
--- a/examples/webgl_loader_3dm.html
+++ b/examples/webgl_loader_3dm.html
@@ -65,7 +65,7 @@
controls = new OrbitControls( camera, container );
- window.addEventListener( 'resize', resize, false );
+ window.addEventListener( 'resize', resize );
}
diff --git a/examples/webgl_loader_3ds.html b/examples/webgl_loader_3ds.html
index d43b3d779bbdb2..211da67975cc55 100644
--- a/examples/webgl_loader_3ds.html
+++ b/examples/webgl_loader_3ds.html
@@ -70,7 +70,7 @@
controls = new TrackballControls( camera, renderer.domElement );
- window.addEventListener( 'resize', resize, false );
+ window.addEventListener( 'resize', resize );
}
diff --git a/examples/webgl_loader_gcode.html b/examples/webgl_loader_gcode.html
index b0d7e8df6d902c..5fa309eb6a0e65 100644
--- a/examples/webgl_loader_gcode.html
+++ b/examples/webgl_loader_gcode.html
@@ -54,7 +54,7 @@
controls.minDistance = 10;
controls.maxDistance = 100;
- window.addEventListener( 'resize', resize, false );
+ window.addEventListener( 'resize', resize );
}
diff --git a/examples/webgl_loader_md2_control.html b/examples/webgl_loader_md2_control.html
index a299c7add0310d..eade4750675a54 100644
--- a/examples/webgl_loader_md2_control.html
+++ b/examples/webgl_loader_md2_control.html
@@ -138,8 +138,8 @@
// EVENTS
window.addEventListener( 'resize', onWindowResize );
- document.addEventListener( 'keydown', onKeyDown, false );
- document.addEventListener( 'keyup', onKeyUp, false );
+ document.addEventListener( 'keydown', onKeyDown );
+ document.addEventListener( 'keyup', onKeyUp );
// CONTROLS
diff --git a/examples/webgl_loader_obj.html b/examples/webgl_loader_obj.html
index cd0ab1aff657cd..aabb4b0621d33c 100644
--- a/examples/webgl_loader_obj.html
+++ b/examples/webgl_loader_obj.html
@@ -109,7 +109,7 @@
renderer.setSize( window.innerWidth, window.innerHeight );
container.appendChild( renderer.domElement );
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
//
diff --git a/examples/webgl_loader_obj_mtl.html b/examples/webgl_loader_obj_mtl.html
index 06e015b715ebe1..aca31c1ae905f3 100644
--- a/examples/webgl_loader_obj_mtl.html
+++ b/examples/webgl_loader_obj_mtl.html
@@ -97,7 +97,7 @@
renderer.setSize( window.innerWidth, window.innerHeight );
container.appendChild( renderer.domElement );
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
//
diff --git a/examples/webgl_loader_prwm.html b/examples/webgl_loader_prwm.html
index 3b06e9547d587e..fc6adf0adedd7e 100644
--- a/examples/webgl_loader_prwm.html
+++ b/examples/webgl_loader_prwm.html
@@ -135,7 +135,7 @@
renderer.setSize( window.innerWidth, window.innerHeight );
container.appendChild( renderer.domElement );
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
//
diff --git a/examples/webgl_loader_texture_ktx2.html b/examples/webgl_loader_texture_ktx2.html
index e04d48552e8517..b97c084c862046 100644
--- a/examples/webgl_loader_texture_ktx2.html
+++ b/examples/webgl_loader_texture_ktx2.html
@@ -89,7 +89,9 @@
}
- window.addEventListener( 'resize', () => {
+ window.addEventListener( 'resize', onWindowResize );
+
+ function onWindowResize() {
const width = window.innerWidth;
const height = window.innerHeight;
@@ -98,7 +100,7 @@
camera.updateProjectionMatrix();
renderer.setSize( width, height );
- }, false );
+ }
/** Correct UVs to be compatible with `flipY=false` textures. */
function flipY( geometry ) {
diff --git a/examples/webgl_loader_ttf.html b/examples/webgl_loader_ttf.html
index 7ec2bca67bf28e..84d0734fe92b6e 100644
--- a/examples/webgl_loader_ttf.html
+++ b/examples/webgl_loader_ttf.html
@@ -108,10 +108,10 @@
// EVENTS
container.style.touchAction = 'none';
- container.addEventListener( 'pointerdown', onPointerDown, false );
+ container.addEventListener( 'pointerdown', onPointerDown );
- document.addEventListener( 'keypress', onDocumentKeyPress, false );
- document.addEventListener( 'keydown', onDocumentKeyDown, false );
+ document.addEventListener( 'keypress', onDocumentKeyPress );
+ document.addEventListener( 'keydown', onDocumentKeyDown );
window.addEventListener( 'resize', onWindowResize );
@@ -242,8 +242,8 @@
pointerXOnPointerDown = event.clientX - windowHalfX;
targetRotationOnPointerDown = targetRotation;
- document.addEventListener( 'pointermove', onPointerMove, false );
- document.addEventListener( 'pointerup', onPointerUp, false );
+ document.addEventListener( 'pointermove', onPointerMove );
+ document.addEventListener( 'pointerup', onPointerUp );
}
diff --git a/examples/webgl_materials_bumpmap.html b/examples/webgl_materials_bumpmap.html
index 4eaa7280baf871..db6ce05b301402 100644
--- a/examples/webgl_materials_bumpmap.html
+++ b/examples/webgl_materials_bumpmap.html
@@ -115,7 +115,7 @@
// EVENTS
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
window.addEventListener( 'resize', onWindowResize );
}
diff --git a/examples/webgl_materials_compile.html b/examples/webgl_materials_compile.html
index db7d525e66f372..994159b28ceda6 100644
--- a/examples/webgl_materials_compile.html
+++ b/examples/webgl_materials_compile.html
@@ -77,7 +77,7 @@
location.reload( true );
- }, false );
+ } );
window.addEventListener( 'load', init );
diff --git a/examples/webgl_materials_cubemap_balls_reflection.html b/examples/webgl_materials_cubemap_balls_reflection.html
index 59acf62b85ff28..c39a7a695a87d4 100644
--- a/examples/webgl_materials_cubemap_balls_reflection.html
+++ b/examples/webgl_materials_cubemap_balls_reflection.html
@@ -28,7 +28,7 @@
let windowHalfX = window.innerWidth / 2;
let windowHalfY = window.innerHeight / 2;
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
init();
animate();
diff --git a/examples/webgl_materials_cubemap_balls_refraction.html b/examples/webgl_materials_cubemap_balls_refraction.html
index 37b9d23cd8392e..b95d782ef3352c 100644
--- a/examples/webgl_materials_cubemap_balls_refraction.html
+++ b/examples/webgl_materials_cubemap_balls_refraction.html
@@ -27,7 +27,7 @@
let windowHalfX = window.innerWidth / 2;
let windowHalfY = window.innerHeight / 2;
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
init();
animate();
diff --git a/examples/webgl_materials_cubemap_dynamic.html b/examples/webgl_materials_cubemap_dynamic.html
index a2c4c7d871df55..2ca0bab5d52f2e 100644
--- a/examples/webgl_materials_cubemap_dynamic.html
+++ b/examples/webgl_materials_cubemap_dynamic.html
@@ -93,10 +93,10 @@
//
- document.addEventListener( 'pointerdown', onPointerDown, false );
- document.addEventListener( 'wheel', onDocumentMouseWheel, false );
+ document.addEventListener( 'pointerdown', onPointerDown );
+ document.addEventListener( 'wheel', onDocumentMouseWheel );
- window.addEventListener( 'resize', onWindowResized, false );
+ window.addEventListener( 'resize', onWindowResized );
}
@@ -119,8 +119,8 @@
onPointerDownLon = lon;
onPointerDownLat = lat;
- document.addEventListener( 'pointermove', onPointerMove, false );
- document.addEventListener( 'pointerup', onPointerUp, false );
+ document.addEventListener( 'pointermove', onPointerMove );
+ document.addEventListener( 'pointerup', onPointerUp );
}
diff --git a/examples/webgl_materials_cubemap_refraction.html b/examples/webgl_materials_cubemap_refraction.html
index be722ea11f0451..4e5f6f478d3d70 100644
--- a/examples/webgl_materials_cubemap_refraction.html
+++ b/examples/webgl_materials_cubemap_refraction.html
@@ -99,7 +99,7 @@
} );
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
//
diff --git a/examples/webgl_materials_matcap.html b/examples/webgl_materials_matcap.html
index 5c77820c01f377..a27b81595dcb27 100644
--- a/examples/webgl_materials_matcap.html
+++ b/examples/webgl_materials_matcap.html
@@ -237,7 +237,7 @@
handleEXR( event );
- }, false );
+ } );
reader.readAsArrayBuffer( file );
@@ -249,7 +249,7 @@
handleJPG( event );
- }, false );
+ } );
reader.readAsDataURL( file );
@@ -264,7 +264,7 @@
event.preventDefault();
event.dataTransfer.dropEffect = 'copy';
- }, false );
+ } );
document.addEventListener( 'drop', function ( event ) {
@@ -272,7 +272,7 @@
loadFile( event.dataTransfer.files[ 0 ] );
- }, false );
+ } );
}
diff --git a/examples/webgl_materials_normalmap.html b/examples/webgl_materials_normalmap.html
index 1b8566ce7914e6..199a647c758f90 100644
--- a/examples/webgl_materials_normalmap.html
+++ b/examples/webgl_materials_normalmap.html
@@ -140,7 +140,7 @@
// EVENTS
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
window.addEventListener( 'resize', onWindowResize );
}
diff --git a/examples/webgl_materials_shaders_fresnel.html b/examples/webgl_materials_shaders_fresnel.html
index 50b6470a06b8ee..2688742213fbd0 100644
--- a/examples/webgl_materials_shaders_fresnel.html
+++ b/examples/webgl_materials_shaders_fresnel.html
@@ -30,7 +30,7 @@
let windowHalfX = window.innerWidth / 2;
let windowHalfY = window.innerHeight / 2;
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
init();
animate();
diff --git a/examples/webgl_materials_texture_anisotropy.html b/examples/webgl_materials_texture_anisotropy.html
index 185362f1aab0a7..1992c3ab011e5a 100644
--- a/examples/webgl_materials_texture_anisotropy.html
+++ b/examples/webgl_materials_texture_anisotropy.html
@@ -167,7 +167,7 @@
stats = new Stats();
container.appendChild( stats.dom );
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
}
diff --git a/examples/webgl_materials_texture_filters.html b/examples/webgl_materials_texture_filters.html
index 3316076a1b0148..5f622261204a77 100644
--- a/examples/webgl_materials_texture_filters.html
+++ b/examples/webgl_materials_texture_filters.html
@@ -182,7 +182,7 @@
renderer.domElement.style.position = "relative";
container.appendChild( renderer.domElement );
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
}
diff --git a/examples/webgl_materials_texture_manualmipmap.html b/examples/webgl_materials_texture_manualmipmap.html
index b9acaa78c71d8e..48496f3df75956 100644
--- a/examples/webgl_materials_texture_manualmipmap.html
+++ b/examples/webgl_materials_texture_manualmipmap.html
@@ -195,7 +195,7 @@
renderer.domElement.style.position = "relative";
container.appendChild( renderer.domElement );
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
}
diff --git a/examples/webgl_materials_video.html b/examples/webgl_materials_video.html
index f9ef3d6a9c3d58..0f2a582205f4ae 100644
--- a/examples/webgl_materials_video.html
+++ b/examples/webgl_materials_video.html
@@ -61,7 +61,7 @@
init();
animate();
- }, false );
+ } );
function init() {
@@ -91,7 +91,7 @@
this.currentTime = 3;
- }, false );
+ } );
texture = new THREE.VideoTexture( video );
@@ -152,7 +152,7 @@
renderer.autoClear = false;
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
// postprocessing
diff --git a/examples/webgl_math_obb.html b/examples/webgl_math_obb.html
index e1b25629af2ad0..f15059871b1b4a 100644
--- a/examples/webgl_math_obb.html
+++ b/examples/webgl_math_obb.html
@@ -114,7 +114,7 @@
window.addEventListener( 'resize', onWindowResize );
- document.addEventListener( 'click', onClick, false );
+ document.addEventListener( 'click', onClick );
}
diff --git a/examples/webgl_modifier_curve.html b/examples/webgl_modifier_curve.html
index 074acf618987ec..e04384c857aec5 100644
--- a/examples/webgl_modifier_curve.html
+++ b/examples/webgl_modifier_curve.html
@@ -135,7 +135,7 @@
renderer.setSize( window.innerWidth, window.innerHeight );
document.body.appendChild( renderer.domElement );
- renderer.domElement.addEventListener( 'pointerdown', onPointerDown, false );
+ renderer.domElement.addEventListener( 'pointerdown', onPointerDown );
rayCaster = new THREE.Raycaster();
control = new TransformControls( camera, renderer.domElement );
diff --git a/examples/webgl_modifier_curve_instanced.html b/examples/webgl_modifier_curve_instanced.html
index 3c1c250879969d..cc9ad83cbeaf7c 100644
--- a/examples/webgl_modifier_curve_instanced.html
+++ b/examples/webgl_modifier_curve_instanced.html
@@ -161,7 +161,7 @@
renderer.setSize( window.innerWidth, window.innerHeight );
document.body.appendChild( renderer.domElement );
- renderer.domElement.addEventListener( 'pointerdown', onPointerDown, false );
+ renderer.domElement.addEventListener( 'pointerdown', onPointerDown );
rayCaster = new THREE.Raycaster();
control = new TransformControls( camera, renderer.domElement );
diff --git a/examples/webgl_multiple_canvases_circle.html b/examples/webgl_multiple_canvases_circle.html
index df9da6adb5b5e8..b554c35f742b45 100644
--- a/examples/webgl_multiple_canvases_circle.html
+++ b/examples/webgl_multiple_canvases_circle.html
@@ -282,7 +282,7 @@
renderer.setPixelRatio( window.devicePixelRatio );
renderer.setSize( 200, 300 );
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
}
diff --git a/examples/webgl_multiple_canvases_complex.html b/examples/webgl_multiple_canvases_complex.html
index 0a949d02bdd91e..12266a19c3ec68 100644
--- a/examples/webgl_multiple_canvases_complex.html
+++ b/examples/webgl_multiple_canvases_complex.html
@@ -215,7 +215,7 @@
renderer.setPixelRatio( window.devicePixelRatio );
renderer.setSize( fullWidth, fullHeight );
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
}
diff --git a/examples/webgl_multiple_canvases_grid.html b/examples/webgl_multiple_canvases_grid.html
index 7243ba599662cf..e29920e2e9d7e6 100644
--- a/examples/webgl_multiple_canvases_grid.html
+++ b/examples/webgl_multiple_canvases_grid.html
@@ -236,7 +236,7 @@
renderer.setPixelRatio( window.devicePixelRatio );
renderer.setSize( 300, 200 );
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
}
diff --git a/examples/webgl_multiple_scenes_comparison.html b/examples/webgl_multiple_scenes_comparison.html
index 7450bcb5fd3ed4..f4e3c62c6ac5ab 100644
--- a/examples/webgl_multiple_scenes_comparison.html
+++ b/examples/webgl_multiple_scenes_comparison.html
@@ -107,8 +107,8 @@
controls.enabled = false;
- window.addEventListener( 'pointermove', onPointerMove, false );
- window.addEventListener( 'pointerup', onPointerUp, false );
+ window.addEventListener( 'pointermove', onPointerMove );
+ window.addEventListener( 'pointerup', onPointerUp );
}
diff --git a/examples/webgl_multiple_views.html b/examples/webgl_multiple_views.html
index bd6c7863f86a2b..46f2131116c424 100644
--- a/examples/webgl_multiple_views.html
+++ b/examples/webgl_multiple_views.html
@@ -206,7 +206,7 @@
stats = new Stats();
container.appendChild( stats.dom );
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
}
diff --git a/examples/webgl_panorama_equirectangular.html b/examples/webgl_panorama_equirectangular.html
index 383e85652b187b..c1f36eca0d8ae0 100644
--- a/examples/webgl_panorama_equirectangular.html
+++ b/examples/webgl_panorama_equirectangular.html
@@ -54,9 +54,9 @@
container.appendChild( renderer.domElement );
container.style.touchAction = 'none';
- container.addEventListener( 'pointerdown', onPointerDown, false );
+ container.addEventListener( 'pointerdown', onPointerDown );
- document.addEventListener( 'wheel', onDocumentMouseWheel, false );
+ document.addEventListener( 'wheel', onDocumentMouseWheel );
//
@@ -65,19 +65,19 @@
event.preventDefault();
event.dataTransfer.dropEffect = 'copy';
- }, false );
+ } );
document.addEventListener( 'dragenter', function () {
document.body.style.opacity = 0.5;
- }, false );
+ } );
document.addEventListener( 'dragleave', function () {
document.body.style.opacity = 1;
- }, false );
+ } );
document.addEventListener( 'drop', function ( event ) {
@@ -89,12 +89,12 @@
material.map.image.src = event.target.result;
material.map.needsUpdate = true;
- }, false );
+ } );
reader.readAsDataURL( event.dataTransfer.files[ 0 ] );
document.body.style.opacity = 1;
- }, false );
+ } );
//
@@ -123,8 +123,8 @@
onPointerDownLon = lon;
onPointerDownLat = lat;
- document.addEventListener( 'pointermove', onPointerMove, false );
- document.addEventListener( 'pointerup', onPointerUp, false );
+ document.addEventListener( 'pointermove', onPointerMove );
+ document.addEventListener( 'pointerup', onPointerUp );
}
diff --git a/examples/webgl_performance.html b/examples/webgl_performance.html
index fc9772f93d5388..c50bd145a832c9 100644
--- a/examples/webgl_performance.html
+++ b/examples/webgl_performance.html
@@ -30,7 +30,7 @@
let windowHalfX = window.innerWidth / 2;
let windowHalfY = window.innerHeight / 2;
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
init();
animate();
diff --git a/examples/webgl_performance_nodes.html b/examples/webgl_performance_nodes.html
index 74c786242ebb27..637bd85c0327f2 100644
--- a/examples/webgl_performance_nodes.html
+++ b/examples/webgl_performance_nodes.html
@@ -56,7 +56,7 @@
const meshes = [];
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
init();
animate();
diff --git a/examples/webgl_performance_static.html b/examples/webgl_performance_static.html
index cedbf77d7fae2b..b1a20dcaf2d894 100644
--- a/examples/webgl_performance_static.html
+++ b/examples/webgl_performance_static.html
@@ -28,7 +28,7 @@
let windowHalfX = window.innerWidth / 2;
let windowHalfY = window.innerHeight / 2;
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
init();
animate();
diff --git a/examples/webgl_points_billboards.html b/examples/webgl_points_billboards.html
index 50bab4efa0492f..5411228d9db4f3 100644
--- a/examples/webgl_points_billboards.html
+++ b/examples/webgl_points_billboards.html
@@ -87,7 +87,7 @@
//
document.body.style.touchAction = 'none';
- document.body.addEventListener( 'pointermove', onPointerMove, false );
+ document.body.addEventListener( 'pointermove', onPointerMove );
//
diff --git a/examples/webgl_points_sprites.html b/examples/webgl_points_sprites.html
index 23b257e6a08491..5e35eb0af45a37 100644
--- a/examples/webgl_points_sprites.html
+++ b/examples/webgl_points_sprites.html
@@ -124,7 +124,7 @@
gui.open();
document.body.style.touchAction = 'none';
- document.body.addEventListener( 'pointermove', onPointerMove, false );
+ document.body.addEventListener( 'pointermove', onPointerMove );
//
diff --git a/examples/webgl_points_waves.html b/examples/webgl_points_waves.html
index cad939b5372b5f..27164b780f988f 100644
--- a/examples/webgl_points_waves.html
+++ b/examples/webgl_points_waves.html
@@ -129,7 +129,7 @@
container.appendChild( stats.dom );
container.style.touchAction = 'none';
- container.addEventListener( 'pointermove', onPointerMove, false );
+ container.addEventListener( 'pointermove', onPointerMove );
//
diff --git a/examples/webgl_postprocessing_dof.html b/examples/webgl_postprocessing_dof.html
index dd1249bca2f557..0839c57c2a2167 100644
--- a/examples/webgl_postprocessing_dof.html
+++ b/examples/webgl_postprocessing_dof.html
@@ -132,7 +132,7 @@
container.appendChild( stats.dom );
container.style.touchAction = 'none';
- container.addEventListener( 'pointermove', onPointerMove, false );
+ container.addEventListener( 'pointermove', onPointerMove );
window.addEventListener( 'resize', onWindowResize );
diff --git a/examples/webgl_postprocessing_dof2.html b/examples/webgl_postprocessing_dof2.html
index c95a0d2c4635d6..4cf666406ed0fb 100644
--- a/examples/webgl_postprocessing_dof2.html
+++ b/examples/webgl_postprocessing_dof2.html
@@ -192,7 +192,7 @@
container.appendChild( stats.dom );
container.style.touchAction = 'none';
- container.addEventListener( 'pointermove', onPointerMove, false );
+ container.addEventListener( 'pointermove', onPointerMove );
effectController = {
diff --git a/examples/webgl_postprocessing_outline.html b/examples/webgl_postprocessing_outline.html
index fb1d40b4058cae..3b0234af012f72 100644
--- a/examples/webgl_postprocessing_outline.html
+++ b/examples/webgl_postprocessing_outline.html
@@ -263,7 +263,7 @@
window.addEventListener( 'resize', onWindowResize );
renderer.domElement.style.touchAction = 'none';
- renderer.domElement.addEventListener( 'pointermove', onPointerMove, false );
+ renderer.domElement.addEventListener( 'pointermove', onPointerMove );
function onPointerMove( event ) {
diff --git a/examples/webgl_postprocessing_unreal_bloom_selective.html b/examples/webgl_postprocessing_unreal_bloom_selective.html
index d02e1a73d0fe8b..c5a061b4e28e4a 100644
--- a/examples/webgl_postprocessing_unreal_bloom_selective.html
+++ b/examples/webgl_postprocessing_unreal_bloom_selective.html
@@ -122,7 +122,7 @@
const mouse = new THREE.Vector2();
- window.addEventListener( 'pointerdown', onPointerDown, false );
+ window.addEventListener( 'pointerdown', onPointerDown );
const gui = new GUI();
diff --git a/examples/webgl_raycast_texture.html b/examples/webgl_raycast_texture.html
index 8a3bed4e20d21d..f639d8ad9f6539 100644
--- a/examples/webgl_raycast_texture.html
+++ b/examples/webgl_raycast_texture.html
@@ -93,7 +93,7 @@
that._draw();
- }, false );
+ } );
this._background.crossOrigin = '';
this._background.src = "textures/uv_grid_opengl.jpg";
@@ -275,7 +275,7 @@
scene.add( circle );
window.addEventListener( 'resize', onWindowResize );
- container.addEventListener( 'mousemove', onMouseMove, false );
+ container.addEventListener( 'mousemove', onMouseMove );
document.getElementById( 'setwrapS' ).addEventListener( 'change', setwrapS );
document.getElementById( 'setwrapT' ).addEventListener( 'change', setwrapT );
diff --git a/examples/webgl_read_float_buffer.html b/examples/webgl_read_float_buffer.html
index 9bd24b64eae5db..d9283b5bcce240 100644
--- a/examples/webgl_read_float_buffer.html
+++ b/examples/webgl_read_float_buffer.html
@@ -158,7 +158,7 @@
valueNode = document.getElementById( 'values' );
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
}
diff --git a/examples/webgl_rtt.html b/examples/webgl_rtt.html
index 208d2fd7725909..88ec516da3f555 100644
--- a/examples/webgl_rtt.html
+++ b/examples/webgl_rtt.html
@@ -178,7 +178,7 @@
stats = new Stats();
container.appendChild( stats.dom );
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
}
diff --git a/examples/webgl_sandbox.html b/examples/webgl_sandbox.html
index e81f21aa420b63..dc2475329e5cc6 100644
--- a/examples/webgl_sandbox.html
+++ b/examples/webgl_sandbox.html
@@ -109,7 +109,7 @@
}
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
//
diff --git a/examples/webgl_shadowmap.html b/examples/webgl_shadowmap.html
index 673f25a847fcd0..14571157610dd4 100644
--- a/examples/webgl_shadowmap.html
+++ b/examples/webgl_shadowmap.html
@@ -123,7 +123,7 @@
//
window.addEventListener( 'resize', onWindowResize );
- window.addEventListener( 'keydown', onKeyDown, false );
+ window.addEventListener( 'keydown', onKeyDown );
}
diff --git a/examples/webgl_shadowmap_csm.html b/examples/webgl_shadowmap_csm.html
index 9d09358f82ecff..f85418191e46d7 100644
--- a/examples/webgl_shadowmap_csm.html
+++ b/examples/webgl_shadowmap_csm.html
@@ -248,7 +248,7 @@
renderer.setSize( window.innerWidth, window.innerHeight );
- }, false );
+ } );
}
diff --git a/examples/webgl_video_kinect.html b/examples/webgl_video_kinect.html
index a67be7d17a7ad9..73e804ca8d9414 100644
--- a/examples/webgl_video_kinect.html
+++ b/examples/webgl_video_kinect.html
@@ -161,7 +161,7 @@
mouse = new THREE.Vector3( 0, 0, 1 );
- document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+ document.addEventListener( 'mousemove', onDocumentMouseMove );
//
diff --git a/examples/webgl_video_panorama_equirectangular.html b/examples/webgl_video_panorama_equirectangular.html
index 2f7c90ed215e27..870e9db8e15ff0 100644
--- a/examples/webgl_video_panorama_equirectangular.html
+++ b/examples/webgl_video_panorama_equirectangular.html
@@ -68,9 +68,9 @@
renderer.setSize( window.innerWidth, window.innerHeight );
container.appendChild( renderer.domElement );
- document.addEventListener( 'pointerdown', onPointerDown, false );
- document.addEventListener( 'pointermove', onPointerMove, false );
- document.addEventListener( 'pointerup', onPointerUp, false );
+ document.addEventListener( 'pointerdown', onPointerDown );
+ document.addEventListener( 'pointermove', onPointerMove );
+ document.addEventListener( 'pointerup', onPointerUp );
//
diff --git a/examples/webgpu_compute.html b/examples/webgpu_compute.html
index 1abddd3fe11612..a2cf9ef865118c 100644
--- a/examples/webgpu_compute.html
+++ b/examples/webgpu_compute.html
@@ -161,7 +161,7 @@
document.body.appendChild( renderer.domElement );
window.addEventListener( 'resize', onWindowResize );
- window.addEventListener( 'mousemove', onMouseMove, false );
+ window.addEventListener( 'mousemove', onMouseMove );
return renderer.init();