mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Various Fixes
This commit is contained in:
@@ -266,7 +266,11 @@ private final class NavigationButtonItemNode: ImmediateTextNode {
|
||||
let previousTouchCount = self.touchCount
|
||||
self.touchCount = max(0, self.touchCount - touches.count)
|
||||
|
||||
if previousTouchCount != 0 && self.touchCount == 0 && self.isEnabled {
|
||||
var touchInside = true
|
||||
if let touch = touches.first {
|
||||
touchInside = self.touchInsideApparentBounds(touch)
|
||||
}
|
||||
if previousTouchCount != 0 && self.touchCount == 0 && self.isEnabled && touchInside {
|
||||
self.pressed()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user