mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Add delay for anim::Disabled tabbed panel hide.
This commit is contained in:
parent
157a928f5a
commit
edfb7b6b24
1 changed files with 5 additions and 1 deletions
|
@ -292,7 +292,11 @@ void TabbedPanel::otherLeave() {
|
||||||
if (_a_opacity.animating()) {
|
if (_a_opacity.animating()) {
|
||||||
hideByTimerOrLeave();
|
hideByTimerOrLeave();
|
||||||
} else {
|
} else {
|
||||||
_hideTimer.callOnce(0);
|
// In case of animations disabled add some delay before hiding.
|
||||||
|
// Otherwise if emoji suggestions panel is shown in between
|
||||||
|
// (z-order wise) the emoji toggle button and tabbed panel,
|
||||||
|
// we won't be able to move cursor from the button to the panel.
|
||||||
|
_hideTimer.callOnce(anim::Disabled() ? kHideTimeoutMs : 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue