Skip to content
Snippets Groups Projects
Commit eaa610c1 authored by Pedro Beschorner Marin's avatar Pedro Beschorner Marin
Browse files

Hide draggable overlay when data saving is enabled

If someone is sharing her/his webcam and the presenter enables webcam's data savings the
draggable overlay covers a portion of the presentation slide.
parent 83b22c05
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,8 @@ export default class Media extends Component {
});
const { viewParticipantsWebcams } = Settings.dataSaving;
const fullHeight = usersVideo.length < 1 || (webcamPlacement === 'floating') || !viewParticipantsWebcams;
const showVideo = usersVideo.length > 0 && viewParticipantsWebcams;
const fullHeight = !showVideo || (webcamPlacement === 'floating');
return (
<div
......@@ -77,7 +78,7 @@ export default class Media extends Component {
>
{children}
</div>
{usersVideo.length > 0 ? (
{showVideo ? (
<WebcamDraggable
refMediaContainer={this.refContainer}
swapLayout={swapLayout}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment