Compare commits
No commits in common. "c141d0e8b76a72cf6751bc78657d6a48862db76b" and "1f0a441ca872bfbbbb2238e43a203029c1fd150b" have entirely different histories.
c141d0e8b7
...
1f0a441ca8
2 changed files with 1 additions and 16 deletions
|
|
@ -16,15 +16,6 @@
|
|||
object-fit: contain;
|
||||
}
|
||||
|
||||
/* Toggled alongside .bottomBar.minimal (see Player.ts's scheduleControlsHide/
|
||||
showControls) - a mouse cursor left sitting over the video is the same
|
||||
kind of clutter the bar itself was, once there's nothing left under it
|
||||
to interact with. Any pointermove/pointerdown anywhere in .playerWrap
|
||||
already calls showControls(), so the cursor reappears the instant the
|
||||
mouse moves again - same convention as any other video player's
|
||||
auto-hiding controls. */
|
||||
.playerWrap.cursorHidden { cursor: none; }
|
||||
|
||||
/* Two stacked rows, both part of the same top gradient overlay: the action
|
||||
bar (title/members/next/settings/leave) and, below it, the presence
|
||||
avatars - see .presenceOverlay in styles/presence.css. Stacking them in
|
||||
|
|
|
|||
|
|
@ -530,11 +530,7 @@ function renderVideoPlayer(root: HTMLElement, partyId: string, party: PartyPubli
|
|||
* sitting on the bar itself, and re-arms on every discrete playback
|
||||
* event too (onDriverStateChanged above), not just raw pointer
|
||||
* activity - resuming from pause has to restart the countdown, not
|
||||
* leave the bar stuck open forever. .playerWrap also gets
|
||||
* .cursorHidden alongside .minimal (see Player.css) - asked for
|
||||
* directly too: a mouse cursor left sitting over the video is exactly
|
||||
* the same kind of clutter the bar itself was, once there's nothing
|
||||
* left under it to interact with.
|
||||
* leave the bar stuck open forever.
|
||||
*/
|
||||
function clearControlsHideTimer() {
|
||||
if (controlsHideTimer) {
|
||||
|
|
@ -548,13 +544,11 @@ function renderVideoPlayer(root: HTMLElement, partyId: string, party: PartyPubli
|
|||
controlsHideTimer = window.setTimeout(() => {
|
||||
if (activeDriver.paused || isPointerOverBottomBar) return;
|
||||
bottomBar.classList.add('minimal');
|
||||
playerWrap.classList.add('cursorHidden');
|
||||
}, CONTROLS_HIDE_DELAY_MS);
|
||||
}
|
||||
|
||||
function showControls() {
|
||||
bottomBar.classList.remove('minimal');
|
||||
playerWrap.classList.remove('cursorHidden');
|
||||
scheduleControlsHide();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue