mirror of
https://github.com/KuekHaoYang/KVideo.git
synced 2026-08-12 23:33:43 +08:00
fix: hide cursor during fullscreen playback
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
export interface PlayerCursorVisibilityState {
|
||||
isFullscreen: boolean;
|
||||
isPlaying: boolean;
|
||||
showControls: boolean;
|
||||
hasInteractiveOverlay?: boolean;
|
||||
}
|
||||
|
||||
export function shouldHidePlayerCursor({
|
||||
isFullscreen,
|
||||
isPlaying,
|
||||
showControls,
|
||||
hasInteractiveOverlay = false,
|
||||
}: PlayerCursorVisibilityState): boolean {
|
||||
return isFullscreen && isPlaying && !showControls && !hasInteractiveOverlay;
|
||||
}
|
||||
Reference in New Issue
Block a user