diff options
| author | Fuwn <[email protected]> | 2025-03-15 05:50:05 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-03-15 05:50:05 -0700 |
| commit | 1404cf99ea13290e35ad2fa520228267a4aba18a (patch) | |
| tree | 14c1483f8313af5661318ddb1b13277528aeef9d /Sora | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-1404cf99ea13290e35ad2fa520228267a4aba18a.tar.xz sora-testing-1404cf99ea13290e35ad2fa520228267a4aba18a.zip | |
feat: Development commit
Diffstat (limited to 'Sora')
| -rw-r--r-- | Sora/Views/Post/Grid/PostGridView.swift | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/Sora/Views/Post/Grid/PostGridView.swift b/Sora/Views/Post/Grid/PostGridView.swift index 8665ba7..9a4be18 100644 --- a/Sora/Views/Post/Grid/PostGridView.swift +++ b/Sora/Views/Post/Grid/PostGridView.swift @@ -119,22 +119,24 @@ struct PostGridView: View { ) .frame(minHeight: 250) } - .gesture( - DragGesture() - .onEnded { value in - if value.startLocation.x < 50 && value.translation.width > 100 { - manager.goBackInHistory() - debugPrint("ContentView: Swipe left, \(manager.searchHistory)") - } + #if !os(macOS) + .gesture( + DragGesture() + .onEnded { value in + if value.startLocation.x < 50 && value.translation.width > 100 { + manager.goBackInHistory() + debugPrint("ContentView: Swipe left, \(manager.searchHistory)") + } - if value.startLocation.x > (UIScreen.main.bounds.width - 50) - && value.translation.width < -100 - { - manager.goForwardInHistory() - debugPrint("ContentView: Swipe right, \(manager.searchHistory)") + if value.startLocation.x > (UIScreen.main.bounds.width - 50) + && value.translation.width < -100 + { + manager.goForwardInHistory() + debugPrint("ContentView: Swipe right, \(manager.searchHistory)") + } } - } - ) + ) + #endif } } |