2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

pausing of mtp while animating, fixed message field while animating

This commit is contained in:
John Preston
2015-10-15 12:18:24 +02:00
parent 1c28d59ed2
commit f12f21b16b
15 changed files with 99 additions and 2 deletions

View File

@@ -2705,6 +2705,8 @@ void MainWidget::historyCleared(History *hist) {
}
void MainWidget::animShow(const QPixmap &bgAnimCache, bool back) {
MTP::pause();
_bgAnimCache = bgAnimCache;
anim::stop(this);
@@ -2737,6 +2739,8 @@ bool MainWidget::animStep(float64 ms) {
anim::stop(this);
showAll();
activate();
if (App::app()) App::app()->mtpUnpause();
} else {
a_bgCoord.update(dt1, st::introHideFunc);
a_bgAlpha.update(dt1, st::introAlphaHideFunc);