Skip to content

Commit

Permalink
fix(OrbitControls): make "wheel" listener passive (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
satelllte authored Apr 30, 2024
1 parent ea1e4bf commit f357e50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controls/OrbitControls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ class OrbitControls extends EventDispatcher {
scope.domElement.addEventListener('contextmenu', onContextMenu)
scope.domElement.addEventListener('pointerdown', onPointerDown)
scope.domElement.addEventListener('pointercancel', onPointerCancel)
scope.domElement.addEventListener('wheel', onMouseWheel)
scope.domElement.addEventListener('wheel', onMouseWheel, { passive: true })
}

this.dispose = (): void => {
Expand Down

0 comments on commit f357e50

Please sign in to comment.