diff --git a/htdocs/openwebrx.js b/htdocs/openwebrx.js index 0055b13..770503c 100644 --- a/htdocs/openwebrx.js +++ b/htdocs/openwebrx.js @@ -1019,7 +1019,7 @@ function canvas_mousewheel(evt) zoom_max_level_hps=33; //Hz/pixel -zoom_levels_count=5; +zoom_levels_count=14; function get_zoom_coeff_from_hps(hps) { @@ -1041,8 +1041,10 @@ function mkzoomlevels() zoom_levels=[1]; maxc=get_zoom_coeff_from_hps(zoom_max_level_hps); if(maxc<1) return; + // logarithmic interpolation + zoom_ratio = Math.pow(maxc, 1/zoom_levels_count); for(i=1;i