mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Fix crash
This commit is contained in:
parent
46566e7155
commit
a053909b87
1 changed files with 1 additions and 1 deletions
|
|
@ -2672,7 +2672,7 @@ open class ListViewImpl: ASDisplayNode, ListView, ASScrollViewDelegate, ASGestur
|
|||
if self.experimentalSnapScrollToItem {
|
||||
self.scrolledToItem = (originalScrollToItem.index, originalScrollToItem.position)
|
||||
}
|
||||
if self.items[originalScrollToItem.index].pinToEdgeWithInset {
|
||||
if originalScrollToItem.index < self.items.count && self.items[originalScrollToItem.index].pinToEdgeWithInset {
|
||||
self.experimentalSnapScrollToPinnedItem = true
|
||||
}
|
||||
} else if let scrolledToItem = self.scrolledToItem, self.experimentalSnapScrollToItem {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue