Skip to content

Commit

Permalink
fix elevation profile drag on retina screens
Browse files Browse the repository at this point in the history
  • Loading branch information
vcoppe committed Oct 6, 2024
1 parent 78e1ea1 commit 45f6c40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/src/lib/components/ElevationProfile.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,8 @@
overlay.width = canvas.width / window.devicePixelRatio;
overlay.height = canvas.height / window.devicePixelRatio;
overlay.style.width = `${canvas.width}px`;
overlay.style.height = `${canvas.height}px`;
overlay.style.width = `${overlay.width}px`;
overlay.style.height = `${overlay.height}px`;
if ($slicedGPXStatistics) {
let startIndex = $slicedGPXStatistics[1];
Expand Down

0 comments on commit 45f6c40

Please sign in to comment.