mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-29 09:58:07 +01:00
Fix scrolling alt text using a mouse
Co-authored-by: BlankEclair <blankeclair@disroot.org>
This commit is contained in:
parent
ee01d5fbdf
commit
5cc77b64bf
1 changed files with 6 additions and 0 deletions
|
@ -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…
Reference in a new issue