mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Fix unnecessary scrolling when opening peer info with list media
This commit is contained in:
parent
58a0622318
commit
2505082eee
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ final class PeerInfoListPaneNode: ASDisplayNode, PeerInfoPaneNode {
|
|||
self.listNode.updateLayout(transition: transition, updateSizeAndInsets: ListViewUpdateSizeAndInsets(size: size, insets: UIEdgeInsets(top: 0.0, left: sideInset, bottom: bottomInset, right: sideInset), duration: duration, curve: curve))
|
||||
if isScrollingLockedAtTop {
|
||||
switch self.listNode.visibleContentOffset() {
|
||||
case .known(0.0):
|
||||
case .known(0.0), .none:
|
||||
break
|
||||
default:
|
||||
self.listNode.scrollToEndOfHistory()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue