summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-10-27 13:36:26 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-10-27 13:36:26 +0300
commit8e15a5080d0d2db77684e22d4cb7297a7aeff8f4 (patch)
tree61eb9353b1ba6777e721a77a81a18120953095cb /include
parentc6e1068e0e1cb8ff5d5982ccd1683b1900dd7114 (diff)
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.
Diffstat (limited to 'include')
-rw-r--r--include/TimelineView.h2
1 files changed, 2 insertions, 0 deletions
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<QString, bool> eventIds_;
QList<PendingMessage> pending_msgs_;