Repository navigation
Web: a fullscreen the browser never holds stops eating CarPlay touches - #32
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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,
FullscreenIntentconsumes the next pointer gesture to restore fullscreen and keeps it from CarPlay. Only a rejectedrequestFullscreen()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.
requestHeldFullscreentreats a request as refused unless fullscreen still holdsFULLSCREEN_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.