From 5a45ff3171cd1c69a9d33b1e97b91cd793e3ba26 Mon Sep 17 00:00:00 2001 From: "J.W. Jagersma" Date: Sun, 30 Aug 2020 04:27:08 +0200 Subject: [PATCH] round frequency to 100Hz when clicking waterfall --- htdocs/openwebrx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/openwebrx.js b/htdocs/openwebrx.js index 36ab5ea..f9aa85a 100644 --- a/htdocs/openwebrx.js +++ b/htdocs/openwebrx.js @@ -545,7 +545,7 @@ function canvas_mouseup(evt) { var relativeX = get_relative_x(evt); if (!canvas_drag) { - $('#openwebrx-panel-receiver').demodulatorPanel().getDemodulator().set_offset_frequency(canvas_get_freq_offset(relativeX)); + $('#openwebrx-panel-receiver').demodulatorPanel().getDemodulator().set_offset_frequency(Math.round(canvas_get_freq_offset(relativeX)/100)*100); } else { canvas_end_drag();