Skip to content

Commit

Permalink
Add delay for anim::Disabled tabbed panel hide.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Jan 27, 2025
1 parent 157a928 commit edfb7b6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Telegram/SourceFiles/chat_helpers/tabbed_panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,11 @@ void TabbedPanel::otherLeave() {
if (_a_opacity.animating()) {
hideByTimerOrLeave();
} 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);
}
}

Expand Down

0 comments on commit edfb7b6

Please sign in to comment.