mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-04-04 14:07:32 +00:00
use the container instead of a (potentially missing) canvas
This commit is contained in:
parent
710a18aae3
commit
ed3d84b974
1 changed files with 1 additions and 1 deletions
|
|
@ -511,7 +511,7 @@ function resize_scale() {
|
|||
}
|
||||
|
||||
function canvas_get_freq_offset(relativeX) {
|
||||
var rel = (relativeX / canvases[0].clientWidth);
|
||||
var rel = (relativeX / canvas_container.clientWidth);
|
||||
return Math.round((bandwidth * rel) - (bandwidth / 2));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue