scroller
All checks were successful
fetch npm modules / f0ck the f0cker (push) Successful in 19s

This commit is contained in:
Kibi Kelburton 2023-11-28 18:22:10 +01:00
parent 78a2524ce9
commit 84937c88a1

View File

@ -234,4 +234,16 @@
});
}
// </mediakeys>
// <scroller>
window.addEventListener('wheel', function(event) {
if (event.target.closest('.media-object')) {
if (event.deltaY < 0) {
document.getElementById('prev').click();
} else if (event.deltaY > 0) {
document.getElementById('next').click();
}
}
});
// </scroller>
})();