mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Stick to bottom on new messages.
This commit is contained in:
parent
50a0429786
commit
204645a715
1 changed files with 1 additions and 1 deletions
|
@ -1562,7 +1562,7 @@ Element *ListWidget::strictFindItemByY(int y) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
auto ListWidget::countScrollState() const -> ScrollTopState {
|
auto ListWidget::countScrollState() const -> ScrollTopState {
|
||||||
if (_items.empty()) {
|
if (_items.empty() || _visibleBottom == height()) {
|
||||||
return { Data::MessagePosition(), 0 };
|
return { Data::MessagePosition(), 0 };
|
||||||
}
|
}
|
||||||
auto topItem = findItemByY(_visibleTop);
|
auto topItem = findItemByY(_visibleTop);
|
||||||
|
|
Loading…
Add table
Reference in a new issue