Fixing scroll wheel operation.

This commit is contained in:
Marat Fayzullin
2022-12-15 17:11:27 -05:00
parent c5aea8e284
commit f3c8a5875d
2 changed files with 8 additions and 7 deletions

View File

@ -249,12 +249,7 @@ Demodulator.prototype.set_offset_frequency = function(to_what) {
if (this.offset_frequency === to_what) {
return;
}
if (this.get_modulation() === 'cw') {
// For CW, move offset 800Hz below the actual carrier
this.offset_frequency = to_what - 800;
} else {
this.offset_frequency = to_what;
}
this.offset_frequency = to_what;
this.set();
this.emit("frequencychange", to_what);
mkenvelopes(get_visible_freq_range());