Skip to content

Commit

Permalink
fix(OrbitControls): don't preventDefault in wheel (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett committed May 2, 2024
1 parent f357e50 commit 0a5de57
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/controls/OrbitControls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ class OrbitControls extends EventDispatcher {

this.dispose = (): void => {
// Enabling touch scroll
if(scope.domElement) {
if (scope.domElement) {
scope.domElement.style.touchAction = 'auto'
}
scope.domElement?.removeEventListener('contextmenu', onContextMenu)
Expand Down Expand Up @@ -949,8 +949,6 @@ class OrbitControls extends EventDispatcher {
return
}

event.preventDefault()

// @ts-ignore
scope.dispatchEvent(startEvent)

Expand Down

0 comments on commit 0a5de57

Please sign in to comment.