Disable drag in spotlight view
This commit is contained in:
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user