diff --git a/src/controls/OrbitControls.ts b/src/controls/OrbitControls.ts index c25da9b9..87af957d 100644 --- a/src/controls/OrbitControls.ts +++ b/src/controls/OrbitControls.ts @@ -413,6 +413,10 @@ class OrbitControls extends EventDispatcher { } this.dispose = (): void => { + // Enabling touch scroll + if(scope.domElement) { + scope.domElement.style.touchAction = 'auto' + } scope.domElement?.removeEventListener('contextmenu', onContextMenu) scope.domElement?.removeEventListener('pointerdown', onPointerDown) scope.domElement?.removeEventListener('pointercancel', onPointerCancel)