You've already forked fm-dx-webserver
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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user