From 8b9677bb7698955d40e619faa8a59187c840cd5e Mon Sep 17 00:00:00 2001 From: schrumpel <Ă‚git@f0ck.it> Date: Tue, 28 Nov 2023 20:25:01 +0100 Subject: [PATCH] trying different directions --- public/s/js/f0ck.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/s/js/f0ck.js b/public/s/js/f0ck.js index 9d483d2..9350d25 100644 --- a/public/s/js/f0ck.js +++ b/public/s/js/f0ck.js @@ -50,9 +50,9 @@ const wheelEventListener = 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(); + } else if (event.deltaY > 0) { + document.getElementById('prev').click(); } } };