Enabling nano-scroller in relevant panels on startup.

This commit is contained in:
Marat Fayzullin 2023-12-07 20:52:07 -05:00
parent 90ba72d4b9
commit c6a0e2bee6
1 changed files with 5 additions and 2 deletions

View File

@ -1567,13 +1567,13 @@ function openwebrx_init() {
initSpectrum();
initPanels();
$('#openwebrx-panel-receiver').demodulatorPanel();
window.addEventListener("resize", openwebrx_resize);
window.addEventListener('resize', openwebrx_resize);
bookmarks = new BookmarkBar();
scanner = new Scanner(bookmarks, 1000);
initSliders();
// Create and run clock
clock = new Clock($("#openwebrx-clock-utc"));
clock = new Clock($('#openwebrx-clock-utc'));
}
function initSliders() {
@ -1711,6 +1711,9 @@ function initPanels() {
});
if (panel_displayed(el)) first_show_panel(el);
});
// Apply nano-scroller to all panels that have 'nano' class
$('.nano').nanoScroller();
}
function initSpectrum() {