Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(toolbox) prevent toolbox shift up on stage view (#14155)

Horatiu Muresanaf4488d1e9de
diff --git a/react/features/toolbox/subscriber.web.ts b/react/features/toolbox/subscriber.web.ts
index ce59a68d6d..3e7405cb20 100644
--- a/react/features/toolbox/subscriber.web.ts
+++ b/react/features/toolbox/subscriber.web.ts
@@ -92,8 +92,12 @@ StateListenerRegistry.register(
isTileView: isLayoutTileView(state)
};
},
- /* listener */({ clientHeight, isTileView }, store) => {
+ /* listener */({ clientHeight, isTileView }, store, { isTileView: previousIsTileView }) => {
if (!isTileView) {
+ if (previousIsTileView) {
+ store.dispatch(setShiftUp(false));
+ }
+
return;
}
throttledCheckOverlap(clientHeight, store);