diff --git a/src/VideoGrid.jsx b/src/VideoGrid.jsx index 7c760e00..e69edc05 100644 --- a/src/VideoGrid.jsx +++ b/src/VideoGrid.jsx @@ -548,15 +548,11 @@ export function VideoGrid({ participants }) { (tileKey) => { const lastTapped = lastTappedRef.current[tileKey]; - if (!lastTapped) { + if (!lastTapped || Date.now() - lastTapped > 500) { lastTappedRef.current[tileKey] = Date.now(); return; } - if (Date.now() - lastTapped > 500) { - return; - } - lastTappedRef.current[tileKey] = 0; const tile = tiles.find((tile) => tile.key === tileKey);