mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
Fix incorrect scroll jumps.
If we invoke showHistory(h, msgId) several times we call forgetScrollState() for this history being on the same scroll place. To compute it again we need to call visibleAreaUpdated() even if the real scroll position was not changed.
This commit is contained in:
parent
65d81f96f3
commit
dd9d604966
1 changed files with 5 additions and 1 deletions
|
@ -6587,7 +6587,11 @@ bool HistoryWidget::touchScroll(const QPoint &delta) {
|
|||
|
||||
void HistoryWidget::synteticScrollToY(int y) {
|
||||
_synteticScrollEvent = true;
|
||||
_scroll->scrollToY(y);
|
||||
if (_scroll->scrollTop() == y) {
|
||||
visibleAreaUpdated();
|
||||
} else {
|
||||
_scroll->scrollToY(y);
|
||||
}
|
||||
_synteticScrollEvent = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue