Fix animation stopping in chat.

This commit is contained in:
John Preston 2019-07-05 19:47:27 +02:00
parent 198de85ce5
commit 4e52da91c7
2 changed files with 9 additions and 0 deletions

View File

@ -232,6 +232,9 @@ void TabbedPanel::otherLeave() {
void TabbedPanel::hideFast() {
if (isHidden()) return;
if (_selector && !_selector->isHidden()) {
_selector->beforeHiding();
}
_hideTimer.cancel();
_hiding = false;
_a_opacity.stop();

View File

@ -1892,6 +1892,9 @@ void HistoryWidget::updateControlsVisibility() {
updateHistoryDownVisibility();
updateUnreadMentionsVisibility();
if (!_history || _a_show.animating()) {
if (_tabbedPanel) {
_tabbedPanel->hideFast();
}
hideChildren();
return;
}
@ -2926,6 +2929,9 @@ void HistoryWidget::showAnimated(
_topShadow->setVisible(params.withTopBarShadow ? false : true);
_cacheOver = App::main()->grabForShowAnimation(params);
if (_tabbedPanel) {
_tabbedPanel->hideFast();
}
hideChildren();
if (params.withTopBarShadow) _topShadow->show();