diff --git a/packages/frontend/src/components/MkMediaList.vue b/packages/frontend/src/components/MkMediaList.vue index 5209489046e7907f3330410252ebfc76c67e3e4a..11529c186f1d25877e7e849bc9c24a7ecc9a65bf 100644 --- a/packages/frontend/src/components/MkMediaList.vue +++ b/packages/frontend/src/components/MkMediaList.vue @@ -195,6 +195,12 @@ onMounted(() => { 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'); }, }); });