1
0
Fork 0
firefox/testing/web-platform/tests/permissions-policy/experimental-features/resources/vertical-scroll-wheel-block.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

22 lines
392 B
HTML

<!DOCTYPE html>
<style>
body, html {
height: 100%;
width: 100%;
overflow: hidden;
}
</style>
<body>
<p>This page blocks all 'mouse-wheel'.</p>
<script>
function defaultScroll() {
window.scrollTo(0, 0);
}
document.body.addEventListener(
"wheel",
(e) => { e.preventDefault(); defaultScroll(); }, {passive: false});
defaultScroll();
</script>
</body>