diff --git a/web/js/main.js b/web/js/main.js index 4db8e91..007f56c 100644 --- a/web/js/main.js +++ b/web/js/main.js @@ -173,18 +173,14 @@ $(document).ready(function() { document.onkeydown = checkKey; - $(window).on('wheel', function(e) { + $('#freq-container').on('wheel', function(e) { var delta = e.originalEvent.deltaY; - - // Check if the scroll event originated from #af-list - if ($(e.target).closest('#af-list').length === 0) { if (delta > 0) { tuneDown(); } else { tuneUp(); } return false; - } }); var freqUpButton = $('#freq-up')[0];