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:
John Preston
2017-08-08 20:23:32 +02:00
parent 65d81f96f3
commit dd9d604966
@@ -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;
}