Skip to content

Web: a fullscreen the browser never holds stops eating CarPlay touches - #32

Merged
riko2chen merged 1 commit into
mainfrom
fix/web-fullscreen-touch
Nov 6, 2026
Merged

riko2chen merged 1 commit into
mainfrom
fix/web-fullscreen-touch

Conversation

@riko2chen

Copy link
Copy Markdown
Contributor

Users report that after turning on fullscreen in the head-unit page's settings, CarPlay can no longer be swiped; turning fullscreen off fixes it.

Cause. While fullscreen is wanted but the page is not in it, FullscreenIntent consumes the next pointer gesture to restore fullscreen and keeps it from CarPlay. Only a rejected requestFullscreen() ended that state. Some head-unit browsers accept the request without entering fullscreen, drop out of it at once, or never settle the promise, so the restore stayed pending and every touch was consumed.

Change. requestHeldFullscreen treats a request as refused unless fullscreen still holds FULLSCREEN_HOLD_MS (1.5 s) after it, including a promise that never settles. A refusal marks the restore failed, so touches pass to CarPlay; the fullscreen preference stays on and the settings show it as unavailable.

Tests. Three new cases in tests/fullscreen.test.ts (accepted but never shown, dropped at once or never answered, held vs rejected). kotlin/web-receiver: 306 tests pass, typecheck and build pass.

The iOS app's own copy of this page gets the same fix separately.

With fullscreen on and the page out of it, the next gesture restores fullscreen
and is kept from CarPlay; only a rejected request ended that. Some head-unit
browsers accept the request without entering fullscreen, drop out of it at
once, or never answer, so every tap and swipe was consumed until the user
turned fullscreen off. A request now counts as refused unless fullscreen still
holds 1.5 s later, and touches go to CarPlay again.
@riko2chen
riko2chen enabled auto-merge November 6, 2026 07:43
@riko2chen
riko2chen merged commit cdb684b into main Nov 6, 2026
6 checks passed
@riko2chen
riko2chen deleted the fix/web-fullscreen-touch branch November 6, 2026 07:46
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant