Skip to content

Commit

Permalink
Merge pull request #617 from Adamant-im/dev/trello.com/c/NOZFKp1s
Browse files Browse the repository at this point in the history
[trello.com/c/NOZFKp1s] Swipe vibro fix
  • Loading branch information
just-software-dev authored Dec 24, 2024
2 parents 5acce50 + 9d1d2e2 commit 65fffc3
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 65fffc3

Please sign in to comment.