Add double-click functionality to ChannelPlayer for fullscreen toggle: enhance user interaction by allowing users to enter fullscreen mode with a double-click on the player.

This commit is contained in:
Leonid Pershin
2026-07-25 06:39:58 +03:00
parent 041df061f9
commit 0ac2973f46
@@ -118,6 +118,7 @@ export function ChannelPlayer({
muted
className="h-full w-full"
onClick={togglePlay}
onDoubleClick={toggleFullscreen}
onPlay={() => setPlaying(true)}
onPause={() => setPlaying(false)}
/>