mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Various Fixes
This commit is contained in:
parent
7d523c4ef0
commit
8d4a729348
@ -275,7 +275,7 @@ private final class ChatListFilterPresetListItemNode: ItemListRevealOptionsItemN
|
||||
}
|
||||
}
|
||||
strongSelf.editableControlNode = editableControlNode
|
||||
strongSelf.insertSubnode(editableControlNode, aboveSubnode: strongSelf.titleNode)
|
||||
strongSelf.insertSubnode(editableControlNode, aboveSubnode: strongSelf.containerNode)
|
||||
editableControlNode.frame = editableControlFrame
|
||||
transition.animatePosition(node: editableControlNode, from: CGPoint(x: -editableControlFrame.size.width / 2.0, y: editableControlFrame.midY))
|
||||
editableControlNode.alpha = 0.0
|
||||
|
@ -247,7 +247,6 @@ public final class MediaPickerScreen: ViewController, AttachmentContainable {
|
||||
|
||||
self.gridNode.visibleContentOffsetChanged = { [weak self] _ in
|
||||
self?.updateNavigation(transition: .immediate)
|
||||
self?.updateScrollingArea()
|
||||
}
|
||||
|
||||
self.hiddenMediaDisposable = (self.hiddenMediaId.get()
|
||||
@ -405,14 +404,14 @@ public final class MediaPickerScreen: ViewController, AttachmentContainable {
|
||||
guard let (layout, _) = self.validLayout else {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
var tag: Int32?
|
||||
self.gridNode.forEachItemNode { itemNode in
|
||||
if let itemNode = itemNode as? MediaPickerGridItemNode {
|
||||
tag = itemNode.tag
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
let dateString = tag.flatMap { self.scrollerTextForTag(tag: $0) }
|
||||
if self.currentScrollingTag != tag {
|
||||
self.currentScrollingTag = tag
|
||||
@ -420,7 +419,7 @@ public final class MediaPickerScreen: ViewController, AttachmentContainable {
|
||||
self.scrollingArea.feedbackTap()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
self.scrollingArea.update(
|
||||
containerSize: layout.size,
|
||||
containerInsets: self.gridNode.gridLayout.insets,
|
||||
|
Loading…
x
Reference in New Issue
Block a user