We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd7cc55 commit 0e28c7bCopy full SHA for 0e28c7b
packages/model-viewer/src/three-components/SmoothControls.ts
@@ -784,6 +784,11 @@ export class SmoothControls extends EventDispatcher {
784
if (this.pointers.length === 1) {
785
this.touchMode = this.touchModeRotate;
786
} else {
787
+ if (this._disableZoom) {
788
+ this.touchMode = null;
789
+ this.element.removeEventListener('touchmove', this.disableScroll);
790
+ return;
791
+ }
792
this.touchMode = (this.touchDecided && this.touchMode === null) ?
793
null :
794
this.touchModeZoom;
0 commit comments