Skip to content

Commit

Permalink
[trello.com/c/NOZFKp1s] Swipe vibro fix
Browse files Browse the repository at this point in the history
  • Loading branch information
just-software-dev committed Dec 20, 2024
1 parent 5acce50 commit 9d1d2e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Adamant/Modules/Chat/View/Managers/ChatSwipeManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9d1d2e2

Please sign in to comment.