Skip to content

Commit 736590f

Browse files
committed
re-instate dropped logic
1 parent 3d7e15e commit 736590f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ui/components/uicontroller/UiContainer.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,13 +237,14 @@ export const UiContainer = (props: UiContainerProps) => {
237237
};
238238

239239
const handleEnded = () => {
240-
setShowing(true);
240+
stopAnimationsAndShowUi_();
241241
};
242242

243243
const handlePresentationModeChange = (event: PresentationModeChangeEvent) => {
244244
setPip(event.presentationMode === PresentationMode.pip);
245245
if (event.presentationMode !== PresentationMode.pip) {
246-
setShowing(true);
246+
stopAnimationsAndShowUi_();
247+
resumeAnimationsIfPossible_();
247248
}
248249
};
249250

0 commit comments

Comments
 (0)