mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-16 10:50:28 +01:00
fix: sheet
This commit is contained in:
@@ -42,10 +42,12 @@ interface UseRemoteControlProps {
|
||||
* Simplified version - D-pad navigation is handled by native focus system.
|
||||
* This hook handles:
|
||||
* - Showing controls on any button press
|
||||
* - Play/pause button on TV remote
|
||||
*/
|
||||
export function useRemoteControl({
|
||||
showControls,
|
||||
toggleControls,
|
||||
togglePlay,
|
||||
onBack,
|
||||
}: UseRemoteControlProps) {
|
||||
// Keep these for backward compatibility with the component
|
||||
@@ -67,6 +69,14 @@ export function useRemoteControl({
|
||||
return;
|
||||
}
|
||||
|
||||
// Handle play/pause button press on TV remote
|
||||
if (evt.eventType === "playPause") {
|
||||
if (togglePlay) {
|
||||
togglePlay();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// Show controls on any D-pad press
|
||||
if (!showControls) {
|
||||
toggleControls();
|
||||
|
||||
Reference in New Issue
Block a user