Skip to content
Snippets Groups Projects
Commit d6297f20 authored by Marie's avatar Marie
Browse files

merge: Fix: scrolling alt text using a mouse (!810)

View MR for information: !810



Closes #654

Approved-by: default avatarHazelnoot <acomputerdog@gmail.com>
Approved-by: default avatarMarie <github@yuugi.dev>
parents 98b63230 5cc77b64
No related branches found
No related tags found
2 merge requests!842Bump stable version,!810Fix: scrolling alt text using a mouse
Pipeline #2078 passed with stages
in 22 minutes and 41 seconds
......@@ -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');
},
});
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment