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