diff --git a/src/components/appMediaViewer.ts b/src/components/appMediaViewer.ts index 99e1fc3c..85187945 100644 --- a/src/components/appMediaViewer.ts +++ b/src/components/appMediaViewer.ts @@ -234,13 +234,6 @@ class AppMediaViewerBase { - if(this.ctrlKeyDown) { - cancelEvent(e); - const scrollingUp = e.deltaY < 0; - this.changeZoom(!!scrollingUp); - } - }); this.wholeDiv.append(this.overlaysDiv, this.buttons.prev, this.buttons.next, this.topbar, this.moversContainer); @@ -438,6 +431,7 @@ class AppMediaViewerBase { this.wholeDiv.remove(); @@ -525,6 +519,14 @@ class AppMediaViewerBase { + if(this.ctrlKeyDown) { + cancelEvent(e); + const scrollingUp = e.deltaY < 0; + this.changeZoom(!!scrollingUp); + } + }; + protected async setMoverToTarget(target: HTMLElement, closing = false, fromRight = 0) { if(this.videoPlayer) { // there could be a better place for it this.wholeDiv.classList.remove('has-video-controls'); @@ -1209,6 +1211,7 @@ class AppMediaViewerBase