Skip to content

Commit

Permalink
Fix duplicate swipe gesture (#3294)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgoncal authored Dec 23, 2024
1 parent d6fe8a4 commit 4d5431b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/App/WebView/WebViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,9 @@ final class WebViewController: UIViewController, WKNavigationDelegate, WKUIDeleg
}

@objc private func screenEdgeGestureRecognizerAction(_ gesture: UIScreenEdgePanGestureRecognizer) {
guard gesture.state == .ended else {
return
}
let gesture: HAGesture = gesture.edges == .left ? .swipeRight : .swipeLeft
let action = Current.settingsStore.gestures[gesture] ?? .none
handleGestureAction(action)
Expand Down

0 comments on commit 4d5431b

Please sign in to comment.