From 45f6c405c0ff6919ceb32ed1725e7b1f4308390f Mon Sep 17 00:00:00 2001 From: vcoppe Date: Sun, 6 Oct 2024 20:03:35 +0200 Subject: [PATCH] fix elevation profile drag on retina screens --- website/src/lib/components/ElevationProfile.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/src/lib/components/ElevationProfile.svelte b/website/src/lib/components/ElevationProfile.svelte index 6e4442539..6d2ebd828 100644 --- a/website/src/lib/components/ElevationProfile.svelte +++ b/website/src/lib/components/ElevationProfile.svelte @@ -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];