Fix zoom on mobile

This commit is contained in:
2025-04-19 13:42:18 +02:00
parent e5b53585aa
commit fef7c8f57c

View File

@@ -217,6 +217,7 @@ onMounted(() => {
{ {
const dist = distance(e.touches); const dist = distance(e.touches);
const diff = dist / lastDistance; const diff = dist / lastDistance;
lastDistance = dist;
zoom.value = clamp(zoom.value * diff, minZoom.value, 3); zoom.value = clamp(zoom.value * diff, minZoom.value, 3);
} }