From 4d5431b103267cdfb2ffa1bd4409828daa1e0893 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Pantale=C3=A3o=20Gon=C3=A7alves?= <5808343+bgoncal@users.noreply.github.com> Date: Mon, 23 Dec 2024 11:48:35 +0100 Subject: [PATCH] Fix duplicate swipe gesture (#3294) --- Sources/App/WebView/WebViewController.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/App/WebView/WebViewController.swift b/Sources/App/WebView/WebViewController.swift index 663a1d079..9096d1bd5 100644 --- a/Sources/App/WebView/WebViewController.swift +++ b/Sources/App/WebView/WebViewController.swift @@ -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)