fix(virtual-background): Set x scale to default value on desktop share as a virtual background deactivation.
This commit is contained in:
parent
8d562b9d59
commit
8db3a341b3
|
@ -389,6 +389,12 @@ function VirtualBackground({
|
||||||
dispatch(updateSettings({
|
dispatch(updateSettings({
|
||||||
localFlipX: !_localFlipX
|
localFlipX: !_localFlipX
|
||||||
}));
|
}));
|
||||||
|
} else {
|
||||||
|
|
||||||
|
// Set x scale to default value.
|
||||||
|
dispatch(updateSettings({
|
||||||
|
localFlipX: true
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
dispatch(hideDialog());
|
dispatch(hideDialog());
|
||||||
}, [ dispatch, options, _localFlipX ]);
|
}, [ dispatch, options, _localFlipX ]);
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
// @flow
|
// @flow
|
||||||
|
|
||||||
import { JitsiTrackEvents } from '../base/lib-jitsi-meet';
|
import { JitsiTrackEvents } from '../base/lib-jitsi-meet';
|
||||||
|
import { updateSettings } from '../base/settings';
|
||||||
|
|
||||||
import { toggleBackgroundEffect } from './actions';
|
import { toggleBackgroundEffect } from './actions';
|
||||||
let filterSupport;
|
let filterSupport;
|
||||||
|
@ -110,5 +111,10 @@ export function localTrackStopped(dispatch: Function, desktopTrack: Object, curr
|
||||||
desktopTrack
|
desktopTrack
|
||||||
&& desktopTrack.on(JitsiTrackEvents.LOCAL_TRACK_STOPPED, () => {
|
&& desktopTrack.on(JitsiTrackEvents.LOCAL_TRACK_STOPPED, () => {
|
||||||
dispatch(toggleBackgroundEffect(noneOptions, currentLocalTrack));
|
dispatch(toggleBackgroundEffect(noneOptions, currentLocalTrack));
|
||||||
|
|
||||||
|
// Set x scale to default value.
|
||||||
|
dispatch(updateSettings({
|
||||||
|
localFlipX: true
|
||||||
|
}));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue