fix(api) invert filmstrip autohide flag
This commit is contained in:
parent
342dd4ceca
commit
2eedc2945d
|
@ -860,8 +860,8 @@ var config = {
|
|||
// 'transcribing.failedToStart' // shown when transcribing fails to start
|
||||
// ],
|
||||
|
||||
// Automatically hides the filmstrip when screen width is under a certain threshold
|
||||
autohideFilmstrip: true,
|
||||
// Prevent the filmstrip from autohiding when screen width is under a certain threshold
|
||||
// disableFilmstripAutohiding: false,
|
||||
|
||||
// Allow all above example options to include a trailing comma and
|
||||
// prevent fear when commenting out the last value.
|
||||
|
|
|
@ -16,7 +16,6 @@ export default [
|
|||
'analytics.disabled',
|
||||
'audioLevelsInterval',
|
||||
'audioQuality',
|
||||
'autohideFilmstrip',
|
||||
'apiLogLevels',
|
||||
'avgRtpStatsN',
|
||||
'backgroundAlpha',
|
||||
|
@ -83,6 +82,7 @@ export default [
|
|||
'disableAP',
|
||||
'disableAudioLevels',
|
||||
'disableDeepLinking',
|
||||
'disableFilmstripAutohiding',
|
||||
'disableInitialGUM',
|
||||
'disableH264',
|
||||
'disableHPF',
|
||||
|
|
|
@ -122,9 +122,9 @@ StateListenerRegistry.register(
|
|||
/* selector */ state => state['features/base/responsive-ui'].clientWidth < ASPECT_RATIO_BREAKPOINT,
|
||||
/* listener */ (widthBelowThreshold, store) => {
|
||||
const state = store.getState();
|
||||
const { autohideFilmstrip } = state['features/base/config'];
|
||||
const { disableFilmstripAutohiding } = state['features/base/config'];
|
||||
|
||||
if (autohideFilmstrip) {
|
||||
if (!disableFilmstripAutohiding) {
|
||||
store.dispatch(setFilmstripVisible(!widthBelowThreshold));
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue