From 84937c88a1bfd2ce0886b8218c0cbd360e93900f Mon Sep 17 00:00:00 2001 From: schrumpel Date: Tue, 28 Nov 2023 18:22:10 +0100 Subject: [PATCH] scroller --- public/s/js/f0ck.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/public/s/js/f0ck.js b/public/s/js/f0ck.js index 35ed3f2..bb59b18 100644 --- a/public/s/js/f0ck.js +++ b/public/s/js/f0ck.js @@ -234,4 +234,16 @@ }); } // + + // + 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(); + } + } + }); + // })();