mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Fix sticker packs list
This commit is contained in:
@@ -1339,7 +1339,7 @@ final class ChatMediaInputNode: ChatInputNode {
|
||||
self.panelFocusTimer?.invalidate()
|
||||
}
|
||||
|
||||
private func updateIsExpanded(_ isExpanded: Bool) {
|
||||
private func updateIsFocused(_ isExpanded: Bool) {
|
||||
guard self.panelIsFocused != isExpanded else {
|
||||
return
|
||||
}
|
||||
@@ -2054,7 +2054,7 @@ final class ChatMediaInputNode: ChatInputNode {
|
||||
panelHeight = standardInputHeight
|
||||
}
|
||||
|
||||
self.updateIsExpanded(isFocused)
|
||||
self.updateIsFocused(isFocused)
|
||||
|
||||
if displaySearch {
|
||||
if let searchContainerNode = self.searchContainerNode {
|
||||
@@ -2490,12 +2490,14 @@ final class ChatMediaInputNode: ChatInputNode {
|
||||
|
||||
override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
|
||||
if self.panelIsFocused {
|
||||
let convertedPoint = CGPoint(x: max(0.0, point.y), y: point.x)
|
||||
if let result = self.listView.hitTest(convertedPoint, with: event) {
|
||||
return result
|
||||
}
|
||||
if let result = self.gifListView.hitTest(convertedPoint, with: event) {
|
||||
return result
|
||||
if point.y > -41.0 && point.y < 38.0 {
|
||||
let convertedPoint = CGPoint(x: max(0.0, point.y), y: point.x)
|
||||
if let result = self.listView.hitTest(convertedPoint, with: event) {
|
||||
return result
|
||||
}
|
||||
if let result = self.gifListView.hitTest(convertedPoint, with: event) {
|
||||
return result
|
||||
}
|
||||
}
|
||||
}
|
||||
if let searchContainerNode = self.searchContainerNode {
|
||||
|
||||
Reference in New Issue
Block a user