diff options
| author | Fuwn <[email protected]> | 2025-02-26 21:23:38 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-02-26 21:23:38 -0800 |
| commit | 3d69a9076d96edfb41477f5b8c6dd02609040bab (patch) | |
| tree | 5e2aed5cc399063ff6324f4c189dc3550454a850 /Sora/Views | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-3d69a9076d96edfb41477f5b8c6dd02609040bab.tar.xz sora-testing-3d69a9076d96edfb41477f5b8c6dd02609040bab.zip | |
feat: Development commit
Diffstat (limited to 'Sora/Views')
| -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 |