diff --git a/packages/frontend/src/components/MkMediaList.vue b/packages/frontend/src/components/MkMediaList.vue index 32766f202..07b073647 100644 --- a/packages/frontend/src/components/MkMediaList.vue +++ b/packages/frontend/src/components/MkMediaList.vue @@ -173,6 +173,12 @@ onMounted(() => { pswp.on('change', () => { textBox.textContent = pswp.currSlide?.data.comment; }); + + // `passive: true` is for Safari compatibility, apparently + const stopEvent = name => textBox.addEventListener(name, event => event.stopPropagation(), { passive: true }); + stopEvent('wheel'); + stopEvent('pointerdown'); + stopEvent('pointercancel'); }, }); });