|
|
@@ -453,7 +453,6 @@ class ArcballControls extends Controls {
|
|
|
|
|
|
super.connect( element );
|
|
|
|
|
|
- this.domElement.style.touchAction = 'none';
|
|
|
this._devPxRatio = window.devicePixelRatio;
|
|
|
|
|
|
this.domElement.addEventListener( 'contextmenu', this._onContextMenu );
|
|
|
@@ -463,6 +462,8 @@ class ArcballControls extends Controls {
|
|
|
|
|
|
window.addEventListener( 'resize', this._onWindowResize );
|
|
|
|
|
|
+ this.domElement.style.touchAction = 'none'; // Disable touch scroll
|
|
|
+
|
|
|
}
|
|
|
|
|
|
disconnect() {
|
|
|
@@ -477,6 +478,8 @@ class ArcballControls extends Controls {
|
|
|
|
|
|
window.removeEventListener( 'resize', this._onWindowResize );
|
|
|
|
|
|
+ this.domElement.style.touchAction = ''; // Restore touch scroll
|
|
|
+
|
|
|
}
|
|
|
|
|
|
onSinglePanStart( event, operation ) {
|