Skip to content

Commit 0a9f81b

Browse files
authored
ArcballControls : Add passive: false for wheel event. (#31259)
* add passive: false for wheel event on ArcballControls * remove package lock * Revert "remove package lock" 7623b6d * Revert "add passive: false for wheel event on ArcballControls" 4007029 * revert and remove package lock updates * revert and remove package lock updates: to event listener
1 parent 90f9499 commit 0a9f81b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/jsm/controls/ArcballControls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ class ArcballControls extends Controls {
457457
this._devPxRatio = window.devicePixelRatio;
458458

459459
this.domElement.addEventListener( 'contextmenu', this._onContextMenu );
460-
this.domElement.addEventListener( 'wheel', this._onWheel );
460+
this.domElement.addEventListener( 'wheel', this._onWheel, { passive: false } );
461461
this.domElement.addEventListener( 'pointerdown', this._onPointerDown );
462462
this.domElement.addEventListener( 'pointercancel', this._onPointerCancel );
463463

0 commit comments

Comments
 (0)