2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-02 07:35:12 +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

@@ -145,6 +145,8 @@ bool IntroWidget::createNext() {
}
void IntroWidget::prepareMove() {
MTP::pause();
if (cacheForHide.isNull() || cacheForHideInd != current) makeHideCache();
stages[current + moving]->prepareShow();
@@ -198,6 +200,8 @@ void IntroWidget::makeShowCache(int stage) {
}
void IntroWidget::animShow(const QPixmap &bgAnimCache, bool back) {
MTP::pause();
_bgAnimCache = bgAnimCache;
anim::stop(this);
@@ -245,6 +249,7 @@ bool IntroWidget::animStep(float64 ms) {
_back.setOpacity(1);
_back.show();
}
if (App::app()) App::app()->mtpUnpause();
} else {
a_bgCoord.update(dt1, st::introHideFunc);
a_bgAlpha.update(dt1, st::introAlphaHideFunc);
@@ -265,6 +270,7 @@ bool IntroWidget::animStep(float64 ms) {
if (!stages[current]->hasBack()) {
_back.hide();
}
if (App::app()) App::app()->mtpUnpause();
} else {
xCoordShow.update(dt2, st::introShowFunc);
cAlphaShow.update(dt2, st::introAlphaShowFunc);