Various Fixes

This commit is contained in:
Ilya Laktyushin
2021-06-11 03:22:13 +03:00
parent 4d952b97d0
commit 8d0f3b86ea
4 changed files with 13 additions and 5 deletions

View File

@@ -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()
}
}