diff options
Diffstat (limited to 'Sora')
| -rw-r--r-- | Sora/Views/InteractiveImageView.swift | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Sora/Views/InteractiveImageView.swift b/Sora/Views/InteractiveImageView.swift index 9ab3774..c40785f 100644 --- a/Sora/Views/InteractiveImageView.swift +++ b/Sora/Views/InteractiveImageView.swift @@ -63,8 +63,8 @@ struct InteractiveImageView: View { TapGesture(count: 2) .onEnded { withAnimation { - currentScale = 1 - previousScale = 1 + currentScale = currentScale == 1 ? 2 : 1 + previousScale = currentScale currentOffset = .zero previousOffset = .zero zoomAnchor = .center |