fix(overflow-drawer) Only use overflow drawer on mobile

pull/10558/head jitsi-meet_6709
robertpin 4 years ago committed by Saúl Ibarra Corretgé
parent e2beb2f3b1
commit 2e22eb5169
  1. 5
      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));
}
});
/**

Loading…
Cancel
Save