diff --git a/src/controls/OrbitControls.ts b/src/controls/OrbitControls.ts index 705d9efa..87af957d 100644 --- a/src/controls/OrbitControls.ts +++ b/src/controls/OrbitControls.ts @@ -409,12 +409,12 @@ class OrbitControls extends EventDispatcher { scope.domElement.addEventListener('contextmenu', onContextMenu) scope.domElement.addEventListener('pointerdown', onPointerDown) scope.domElement.addEventListener('pointercancel', onPointerCancel) - scope.domElement.addEventListener('wheel', onMouseWheel, { passive: true }) + scope.domElement.addEventListener('wheel', onMouseWheel) } this.dispose = (): void => { // Enabling touch scroll - if (scope.domElement) { + if(scope.domElement) { scope.domElement.style.touchAction = 'auto' } scope.domElement?.removeEventListener('contextmenu', onContextMenu) @@ -949,6 +949,8 @@ class OrbitControls extends EventDispatcher { return } + event.preventDefault() + // @ts-ignore scope.dispatchEvent(startEvent)