From 8e15a5080d0d2db77684e22d4cb7297a7aeff8f4 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Fri, 27 Oct 2017 13:36:26 +0300 Subject: Adjust scrollbar only after pagination (#94) The scrollbar will stay in the same position if new messages are added to the bottom of the timeline. --- include/TimelineView.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/TimelineView.h b/include/TimelineView.h index 55f25687..400b0db0 100644 --- a/include/TimelineView.h +++ b/include/TimelineView.h @@ -155,6 +155,8 @@ private: int oldPosition_; int oldHeight_; + TimelineDirection lastMessageDirection_; + // The events currently rendered. Used for duplicate detection. QMap eventIds_; QList pending_msgs_; -- cgit 1.5.1