mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Various fixes
This commit is contained in:
@@ -1283,7 +1283,8 @@ class ChatMessageStickerItemNode: ChatMessageItemView {
|
||||
let progress = abs(translation.x) / swipeOffset
|
||||
swipeToReplyNode.updateProgress(progress)
|
||||
|
||||
if progress == 1.0 && !self.playedSwipeToReplyHaptic {
|
||||
if progress > 1.0 - .ulpOfOne && !self.playedSwipeToReplyHaptic {
|
||||
self.playedSwipeToReplyHaptic = true
|
||||
self.swipeToReplyFeedback?.impact(.heavy)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user