From 82640afaa33df2b8ca569ffc760a39ac9f3f635a Mon Sep 17 00:00:00 2001 From: Eduard Kuzmenko Date: Sat, 21 Aug 2021 00:55:59 +0300 Subject: [PATCH] Zoom: prevent page zooming --- src/components/appMediaViewer.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/appMediaViewer.ts b/src/components/appMediaViewer.ts index 85187945..c5921e05 100644 --- a/src/components/appMediaViewer.ts +++ b/src/components/appMediaViewer.ts @@ -494,8 +494,10 @@ class AppMediaViewerBase { + cancelEvent(e); + if(this.ctrlKeyDown) { - cancelEvent(e); const scrollingUp = e.deltaY < 0; this.changeZoom(!!scrollingUp); }