Преглед изворни кода

fix(api) invert filmstrip autohide flag

master
Tudor-Ovidiu Avram пре 3 година
родитељ
комит
2eedc2945d

+ 2
- 2
config.js Прегледај датотеку

@@ -860,8 +860,8 @@ var config = {
860 860
     //     'transcribing.failedToStart' // shown when transcribing fails to start
861 861
     // ],
862 862
 
863
-    // Automatically hides the filmstrip when screen width is under a certain threshold
864
-    autohideFilmstrip: true,
863
+    // Prevent the filmstrip from autohiding when screen width is under a certain threshold
864
+    // disableFilmstripAutohiding: false,
865 865
 
866 866
     // Allow all above example options to include a trailing comma and
867 867
     // prevent fear when commenting out the last value.

+ 1
- 1
react/features/base/config/configWhitelist.js Прегледај датотеку

@@ -16,7 +16,6 @@ export default [
16 16
     'analytics.disabled',
17 17
     'audioLevelsInterval',
18 18
     'audioQuality',
19
-    'autohideFilmstrip',
20 19
     'apiLogLevels',
21 20
     'avgRtpStatsN',
22 21
     'backgroundAlpha',
@@ -83,6 +82,7 @@ export default [
83 82
     'disableAP',
84 83
     'disableAudioLevels',
85 84
     'disableDeepLinking',
85
+    'disableFilmstripAutohiding',
86 86
     'disableInitialGUM',
87 87
     'disableH264',
88 88
     'disableHPF',

+ 2
- 2
react/features/filmstrip/subscriber.web.js Прегледај датотеку

@@ -122,9 +122,9 @@ StateListenerRegistry.register(
122 122
     /* selector */ state => state['features/base/responsive-ui'].clientWidth < ASPECT_RATIO_BREAKPOINT,
123 123
     /* listener */ (widthBelowThreshold, store) => {
124 124
         const state = store.getState();
125
-        const { autohideFilmstrip } = state['features/base/config'];
125
+        const { disableFilmstripAutohiding } = state['features/base/config'];
126 126
 
127
-        if (autohideFilmstrip) {
127
+        if (!disableFilmstripAutohiding) {
128 128
             store.dispatch(setFilmstripVisible(!widthBelowThreshold));
129 129
         }
130 130
     });

Loading…
Откажи
Сачувај