Skip to content

Commit 4d5431b

Browse files
authored
Fix duplicate swipe gesture (#3294)
1 parent d6fe8a4 commit 4d5431b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/App/WebView/WebViewController.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,9 @@ final class WebViewController: UIViewController, WKNavigationDelegate, WKUIDeleg
664664
}
665665

666666
@objc private func screenEdgeGestureRecognizerAction(_ gesture: UIScreenEdgePanGestureRecognizer) {
667+
guard gesture.state == .ended else {
668+
return
669+
}
667670
let gesture: HAGesture = gesture.edges == .left ? .swipeRight : .swipeLeft
668671
let action = Current.settingsStore.gestures[gesture] ?? .none
669672
handleGestureAction(action)

0 commit comments

Comments
 (0)