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.
This commit is contained in:
parent
c6e1068e0e
commit
8e15a5080d
2 changed files with 12 additions and 1 deletions
|
|
@ -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_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue