From 9d1d2e283f67b78b54be8571ca59d7a7dab37929 Mon Sep 17 00:00:00 2001 From: just-software-dev Date: Fri, 20 Dec 2024 01:57:33 -0300 Subject: [PATCH] [trello.com/c/NOZFKp1s] Swipe vibro fix --- Adamant/Modules/Chat/View/Managers/ChatSwipeManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Adamant/Modules/Chat/View/Managers/ChatSwipeManager.swift b/Adamant/Modules/Chat/View/Managers/ChatSwipeManager.swift index 833c44110..9f959b898 100644 --- a/Adamant/Modules/Chat/View/Managers/ChatSwipeManager.swift +++ b/Adamant/Modules/Chat/View/Managers/ChatSwipeManager.swift @@ -93,7 +93,7 @@ private extension ChatSwipeManager { vibrated = false } - guard !vibrated else { break } + guard !vibrated, offset <= requiredSwipeOffset else { break } UIImpactFeedbackGenerator(style: .heavy).impactOccurred() vibrated = true case .ended, .cancelled, .failed: