fixup! (frontend) add ScreenShareZoomableVideo component for zoomable screen shares

This commit is contained in:
Cyril
2026-07-15 10:23:04 +02:00
parent 09ec37d69a
commit fce967ac12
2 changed files with 7 additions and 2 deletions
@@ -123,7 +123,10 @@ export const ParticipantTile: (
const handleTileMouseMove = React.useCallback(() => { const handleTileMouseMove = React.useCallback(() => {
if (idleTimerRef.current) window.clearTimeout(idleTimerRef.current) if (idleTimerRef.current) window.clearTimeout(idleTimerRef.current)
idleTimerRef.current = window.setTimeout(() => setIsIdle(true), MOUSE_IDLE_TIME) idleTimerRef.current = window.setTimeout(
() => setIsIdle(true),
MOUSE_IDLE_TIME
)
setIsIdle(false) setIsIdle(false)
}, []) }, [])
@@ -141,7 +141,9 @@ export const ScreenShareZoomControls = ({
size="sm" size="sm"
variant="primaryTextDark" variant="primaryTextDark"
square square
tooltip={t('zoomOutWithShortcut', { shortcut: wheelShortcutVisual })} tooltip={t('zoomOutWithShortcut', {
shortcut: wheelShortcutVisual,
})}
aria-label={t('zoomOut')} aria-label={t('zoomOut')}
isDisabled={!isZoomed || !canZoomOut} isDisabled={!isZoomed || !canZoomOut}
onPress={onZoomOut} onPress={onZoomOut}