Explorar el Código

fix(virtual-background): Set x scale to default value on desktop share as a virtual background deactivation.

j8
tudordan7 hace 3 años
padre
commit
8db3a341b3

+ 6
- 0
react/features/virtual-background/components/VirtualBackgroundDialog.js Ver fichero

@@ -389,6 +389,12 @@ function VirtualBackground({
389 389
             dispatch(updateSettings({
390 390
                 localFlipX: !_localFlipX
391 391
             }));
392
+        } else {
393
+
394
+            // Set x scale to default value.
395
+            dispatch(updateSettings({
396
+                localFlipX: true
397
+            }));
392 398
         }
393 399
         dispatch(hideDialog());
394 400
     }, [ dispatch, options, _localFlipX ]);

+ 6
- 0
react/features/virtual-background/functions.js Ver fichero

@@ -1,6 +1,7 @@
1 1
 // @flow
2 2
 
3 3
 import { JitsiTrackEvents } from '../base/lib-jitsi-meet';
4
+import { updateSettings } from '../base/settings';
4 5
 
5 6
 import { toggleBackgroundEffect } from './actions';
6 7
 let filterSupport;
@@ -110,5 +111,10 @@ export function localTrackStopped(dispatch: Function, desktopTrack: Object, curr
110 111
     desktopTrack
111 112
     && desktopTrack.on(JitsiTrackEvents.LOCAL_TRACK_STOPPED, () => {
112 113
         dispatch(toggleBackgroundEffect(noneOptions, currentLocalTrack));
114
+
115
+        // Set x scale to default value.
116
+        dispatch(updateSettings({
117
+            localFlipX: true
118
+        }));
113 119
     });
114 120
 }

Loading…
Cancelar
Guardar