round frequency to 100Hz when clicking waterfall

This commit is contained in:
J.W. Jagersma 2020-08-30 04:27:08 +02:00
parent d609acc6aa
commit 5a45ff3171
No known key found for this signature in database
GPG Key ID: 438BF81BA7510C54

View File

@ -545,7 +545,7 @@ function canvas_mouseup(evt) {
var relativeX = get_relative_x(evt); var relativeX = get_relative_x(evt);
if (!canvas_drag) { 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 { else {
canvas_end_drag(); canvas_end_drag();