Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix duplicate swipe gesture #3294

Merged
merged 1 commit into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion Sources/Shared/Resources/Swiftgen/Strings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ public enum L10n {
public static var discord: String { return L10n.tr("Localizable", "connection.error.details.button.discord") }
/// Read documentation
public static var doc: String { return L10n.tr("Localizable", "connection.error.details.button.doc") }
/// Report issue in Github
/// Report issue in GitHub
public static var github: String { return L10n.tr("Localizable", "connection.error.details.button.github") }
}
public enum Label {
Expand Down
Loading