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(overflow-drawer) Only use overflow drawer on mobile

robertpin2e22eb5169e3
diff --git a/react/features/filmstrip/subscriber.web.js b/react/features/filmstrip/subscriber.web.js
index 242426a700..d9e5b47328 100644
--- a/react/features/filmstrip/subscriber.web.js
+++ b/react/features/filmstrip/subscriber.web.js
@@ -1,5 +1,6 @@
// @flow
+import { isMobileBrowser } from '../base/environment/utils';
import { getParticipantCountWithFake } from '../base/participants';
import { StateListenerRegistry, equals } from '../base/redux';
import { clientResized } from '../base/responsive-ui';
@@ -99,7 +100,9 @@ StateListenerRegistry.register(
StateListenerRegistry.register(
/* selector */ state => state['features/base/responsive-ui'].clientWidth < DISPLAY_DRAWER_THRESHOLD,
/* listener */ (widthBelowThreshold, store) => {
- store.dispatch(setOverflowDrawer(widthBelowThreshold));
+ if (isMobileBrowser()) {
+ store.dispatch(setOverflowDrawer(widthBelowThreshold));
+ }
});
/**