mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-04-05 06:25:19 +00:00
Now the marker also works properly with the zoom
This commit is contained in:
parent
3599259a25
commit
bc0a65d495
1 changed files with 2 additions and 1 deletions
|
|
@ -2433,7 +2433,8 @@ function secondary_demod_update_channel_freq_from_event(evt)
|
|||
if(typeof evt !== "undefined")
|
||||
{
|
||||
var relativeX=(evt.offsetX)?evt.offsetX:evt.layerX;
|
||||
secondary_demod_channel_freq=(relativeX/$(secondary_demod_canvas_container).width()) * (if_samp_rate/2);
|
||||
secondary_demod_channel_freq=secondary_demod_low_cut +
|
||||
(relativeX/$(secondary_demod_canvas_container).width()) * (secondary_demod_high_cut-secondary_demod_low_cut);
|
||||
}
|
||||
//console.log("toset:", secondary_demod_channel_freq);
|
||||
if(!secondary_demod_waiting_for_set)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue