mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-30 16:59:15 +02:00
scroll tuning -> freq panel
This commit is contained in:
+1
-5
@@ -173,18 +173,14 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
document.onkeydown = checkKey;
|
document.onkeydown = checkKey;
|
||||||
|
|
||||||
$(window).on('wheel', function(e) {
|
$('#freq-container').on('wheel', function(e) {
|
||||||
var delta = e.originalEvent.deltaY;
|
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) {
|
if (delta > 0) {
|
||||||
tuneDown();
|
tuneDown();
|
||||||
} else {
|
} else {
|
||||||
tuneUp();
|
tuneUp();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
var freqUpButton = $('#freq-up')[0];
|
var freqUpButton = $('#freq-up')[0];
|
||||||
|
|||||||
Reference in New Issue
Block a user