Disable drag in spotlight view

This commit is contained in:
Robert Long 2021-09-02 13:40:53 -07:00
parent e23357dca2
commit 48eabecb87

View File

@ -683,7 +683,7 @@ export function VideoGrid({ participants, layout }) {
api.start(animate(newTiles));
},
{ filterTaps: true }
{ filterTaps: true, enabled: layout === "gallery" }
);
return (
@ -709,6 +709,10 @@ export function VideoGrid({ participants, layout }) {
);
}
VideoGrid.defaultProps = {
layout: "gallery",
};
function ParticipantTile({ style, participant, remove, presenter, ...rest }) {
const videoRef = useRef();