1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-27 06:23:53 +01:00

scroll tuning -> freq panel

This commit is contained in:
NoobishSVK
2024-01-28 23:02:13 +01:00
parent 87edee869b
commit 6e25e0b1dd

View File

@@ -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];