fix elevation profile drag on retina screens

This commit is contained in:
vcoppe
2024-10-06 20:03:35 +02:00
parent 78e1ea1e59
commit 45f6c405c0

View File

@@ -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];