diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-10-27 13:36:26 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-10-27 13:36:26 +0300 |
commit | 8e15a5080d0d2db77684e22d4cb7297a7aeff8f4 (patch) | |
tree | 61eb9353b1ba6777e721a77a81a18120953095cb /include | |
parent | Lint (diff) | |
download | nheko-8e15a5080d0d2db77684e22d4cb7297a7aeff8f4.tar.xz |
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.h | 2 |
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_; |