Skip to content
Snippets Groups Projects

Fix: scrolling alt text using a mouse

Merged Charlotte requested to merge CenTdemeern1/Sharkey:fix/scroll-alt-text into develop
1 file
+ 6
0
Compare changes
  • Side-by-side
  • Inline
@@ -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');
},
});
});
Loading