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