diff --git a/components/modal/ModalMediaPreview.vue b/components/modal/ModalMediaPreview.vue index 55b44fa7..6efad34e 100644 --- a/components/modal/ModalMediaPreview.vue +++ b/components/modal/ModalMediaPreview.vue @@ -22,6 +22,12 @@ useImageGesture(img, { }, }) +// stop global zooming +useEventListener('wheel', (evt) => { + if (evt.ctrlKey && (evt.deltaY < 0 || evt.deltaY > 0)) + evt.preventDefault() +}, { passive: false }) + const keys = useMagicKeys() whenever(keys.arrowLeft, prev)