fix elevation profile drag on retina screens
This commit is contained in:
parent
78e1ea1e59
commit
45f6c405c0
1 changed files with 2 additions and 2 deletions
|
@ -501,8 +501,8 @@
|
||||||
|
|
||||||
overlay.width = canvas.width / window.devicePixelRatio;
|
overlay.width = canvas.width / window.devicePixelRatio;
|
||||||
overlay.height = canvas.height / window.devicePixelRatio;
|
overlay.height = canvas.height / window.devicePixelRatio;
|
||||||
overlay.style.width = `${canvas.width}px`;
|
overlay.style.width = `${overlay.width}px`;
|
||||||
overlay.style.height = `${canvas.height}px`;
|
overlay.style.height = `${overlay.height}px`;
|
||||||
|
|
||||||
if ($slicedGPXStatistics) {
|
if ($slicedGPXStatistics) {
|
||||||
let startIndex = $slicedGPXStatistics[1];
|
let startIndex = $slicedGPXStatistics[1];
|
||||||
|
|
Loading…
Reference in a new issue