Skip to content

fix(web): let the captured-mouse line fade after six seconds - #72

Merged
enricobuehler merged 1 commit into
mainfrom
fix/capture-hint-stays
Nov 5, 2026
Merged

enricobuehler merged 1 commit into
mainfrom
fix/capture-hint-stays

Conversation

@enricobuehler

Copy link
Copy Markdown
Member

Reported on Discord against 0.3.3 (unom/punktfunk#2298): with the mouse captured, the line "Mouse captured — press Esc to release" stays over the picture and never goes away.

It was shown for as long as the pointer was captured, with no timer. In a game that is the whole session. It now appears each time capture starts and fades after six seconds, the same animation the exit hint already uses.

Checked

  • tsc in both workspaces; page tests 90 + 4.
  • The shell harness (_screens.html?s=streaming-captured) in headless Chromium and WebKit: opacity 1 at 1.5 s, 0 at 7 s.

Not checked

A real stream with a real pointer lock: capture, wait, release, capture again.

The line that says how to release a captured mouse stayed over the picture for as long as the mouse was captured, which in a game is the whole session. It now shows each time capture starts and fades with the exit hint's own six seconds.

Reported as unom/punktfunk#2298.
@enricobuehler
enricobuehler merged commit 987856e into main Nov 5, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant