Disable drag in spotlight view
This commit is contained in:
parent
e23357dca2
commit
48eabecb87
1 changed files with 5 additions and 1 deletions
|
@ -683,7 +683,7 @@ export function VideoGrid({ participants, layout }) {
|
||||||
|
|
||||||
api.start(animate(newTiles));
|
api.start(animate(newTiles));
|
||||||
},
|
},
|
||||||
{ filterTaps: true }
|
{ filterTaps: true, enabled: layout === "gallery" }
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -709,6 +709,10 @@ export function VideoGrid({ participants, layout }) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VideoGrid.defaultProps = {
|
||||||
|
layout: "gallery",
|
||||||
|
};
|
||||||
|
|
||||||
function ParticipantTile({ style, participant, remove, presenter, ...rest }) {
|
function ParticipantTile({ style, participant, remove, presenter, ...rest }) {
|
||||||
const videoRef = useRef();
|
const videoRef = useRef();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue