Browse Source

fix(background-alpha) Fix setting background opacity

master
Horatiu Muresan 3 years ago
parent
commit
00d68f08ab
No account linked to committer's email address
2 changed files with 8 additions and 8 deletions
  1. 5
    5
      modules/UI/UI.js
  2. 3
    3
      react/features/conference/components/web/Conference.js

+ 5
- 5
modules/UI/UI.js View File

@@ -108,13 +108,13 @@ UI.start = function() {
108 108
         $('body').addClass('mobile-browser');
109 109
     } else {
110 110
         $('body').addClass('desktop-browser');
111
+    }
111 112
 
112
-        if (config.backgroundAlpha !== undefined) {
113
-            const backgroundColor = $('body').css('background-color');
114
-            const alphaColor = setColorAlpha(backgroundColor, config.backgroundAlpha);
113
+    if (config.backgroundAlpha !== undefined) {
114
+        const backgroundColor = $('body').css('background-color');
115
+        const alphaColor = setColorAlpha(backgroundColor, config.backgroundAlpha);
115 116
 
116
-            $('body').css('background-color', alphaColor);
117
-        }
117
+        $('body').css('background-color', alphaColor);
118 118
     }
119 119
 
120 120
     if (config.iAmRecorder) {

+ 3
- 3
react/features/conference/components/web/Conference.js View File

@@ -229,13 +229,13 @@ class Conference extends AbstractConference<Props, *> {
229 229
                 id = 'layout_wrapper'
230 230
                 onMouseEnter = { this._onMouseEnter }
231 231
                 onMouseLeave = { this._onMouseLeave }
232
-                onMouseMove = { this._onMouseMove } >
232
+                onMouseMove = { this._onMouseMove }
233
+                ref = { this._setBackground }>
233 234
                 <Chat />
234 235
                 <div
235 236
                     className = { clsx(_layoutClassName, _showStageFilmstrip && 'stage-filmstrip') }
236 237
                     id = 'videoconference_page'
237
-                    onMouseMove = { isMobileBrowser() ? undefined : this._onShowToolbar }
238
-                    ref = { this._setBackground }>
238
+                    onMouseMove = { isMobileBrowser() ? undefined : this._onShowToolbar }>
239 239
                     <ConferenceInfo />
240 240
                     <Notice />
241 241
                     <div

Loading…
Cancel
Save