Skip to content

Commit

Permalink
Actually fade out UI after closing a menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen-Veltmans committed Nov 23, 2023
1 parent 99ddf43 commit 5ee8767
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ui/components/uicontroller/UiContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,9 @@ export class UiContainer extends PureComponent<React.PropsWithChildren<UiContain
public closeCurrentMenu_ = () => {
this._menus.pop();
const nextMenu = this._menus.length > 0 ? this._menus[this._menus.length - 1] : undefined;
this.setState({ currentMenu: nextMenu?.() });
this.resumeAnimationsIfPossible_();
this.setState({ currentMenu: nextMenu?.() }, () => {
this.resumeAnimationsIfPossible_();
});
};

public enterPip_ = () => {
Expand Down

0 comments on commit 5ee8767

Please sign in to comment.