Limit zooming

This commit is contained in:
Lumaa 2024-02-29 13:33:49 +01:00
parent ee296e57b4
commit 01b49e3046

View File

@ -172,6 +172,9 @@ struct AttachmentView: View {
totalZoom += currentZoom
totalZoom = max(1, totalZoom)
currentZoom = 0
withAnimation(.spring.speed(2.0)) {
totalZoom = min(5, totalZoom)
}
}
)
.highPriorityGesture(