2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 00:55:12 +00:00

fixed gif frame delays, no-repaint-on-scroll optimization done for history

This commit is contained in:
John Preston
2016-01-03 16:01:14 +08:00
parent 5a87bf4114
commit 85bb526294
4 changed files with 124 additions and 63 deletions

View File

@@ -682,6 +682,8 @@ public slots:
void onRecordDone(QByteArray result, qint32 samples);
void onRecordUpdate(qint16 level, qint32 samples);
void onUpdateHistoryItems();
private:
MsgId _replyToId;
@@ -771,6 +773,10 @@ private:
History *_migrated, *_history;
bool _histInited; // initial updateListSize() called
int32 _lastScroll;
uint64 _lastScrolled;
QTimer _updateHistoryItems; // gifs optimization
IconedButton _toHistoryEnd;
CollapseButton _collapseComments;