mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user