Fix zoom on mobile
This commit is contained in:
parent
e5b53585aa
commit
fef7c8f57c
|
|
@ -217,6 +217,7 @@ onMounted(() => {
|
|||
{
|
||||
const dist = distance(e.touches);
|
||||
const diff = dist / lastDistance;
|
||||
lastDistance = dist;
|
||||
|
||||
zoom.value = clamp(zoom.value * diff, minZoom.value, 3);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue