diff --git a/src/VideoGrid.jsx b/src/VideoGrid.jsx index 4b06db3..6b222b9 100644 --- a/src/VideoGrid.jsx +++ b/src/VideoGrid.jsx @@ -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();