MCPcopy Index your code
hub / github.com/midrender/revideo / shouldShowControls

Function shouldShowControls

packages/player-react/src/utils.ts:31–41  ·  view source on GitHub ↗
(
  playing: boolean,
  isMouseOver: boolean,
  areControlsDisabled: boolean,
)

Source from the content-addressed store, hash-verified

29}
30
31export function shouldShowControls(
32 playing: boolean,
33 isMouseOver: boolean,
34 areControlsDisabled: boolean,
35) {
36 if (areControlsDisabled) {
37 return false;
38 }
39
40 return !playing || isMouseOver;
41}

Callers 1

PlayerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected