diff options
| author | Fuwn <[email protected]> | 2025-03-01 00:35:26 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-03-01 00:35:32 -0800 |
| commit | 83113da4692cc60e394f9c7af89882e7ec5ca877 (patch) | |
| tree | 8382220281eaedf9f6f2c817ee1f8e77f523f383 /Sora/Views/InteractiveImageView.swift | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-83113da4692cc60e394f9c7af89882e7ec5ca877.tar.xz sora-testing-83113da4692cc60e394f9c7af89882e7ec5ca877.zip | |
feat: Development commit
Diffstat (limited to 'Sora/Views/InteractiveImageView.swift')
| -rw-r--r-- | Sora/Views/InteractiveImageView.swift | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Sora/Views/InteractiveImageView.swift b/Sora/Views/InteractiveImageView.swift index e7ddea2..052e9cd 100644 --- a/Sora/Views/InteractiveImageView.swift +++ b/Sora/Views/InteractiveImageView.swift @@ -46,7 +46,7 @@ struct InteractiveImageView<MenuItems: View>: View { previousScale = currentScale } .simultaneously( - with: DragGesture(minimumDistance: 0) + with: (currentScale > 1 ? DragGesture(minimumDistance: 0) : nil) .onChanged { gesture in withAnimation(.interactiveSpring()) { var newOffset: CGSize = .zero |