mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fix animation stopping in chat.
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user