Limit zooming
This commit is contained in:
parent
ee296e57b4
commit
01b49e3046
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user