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(); + } + } + }); + // })();