fix(platform-apple): refuse split-view-exit when app fills lit panel
KH
4d ago+74+74+01234567890123456789-6-6-0123456789
Summary
Fixes #5105. swipe split-view-exit previously dispatched a drag from display center to the left edge even when a single app already filled the lit panel, turning into an unintended pan on app content.
packages/platform-apple/src/foldable/split-view.ts:appleSplitViewRunnerPlanacceptsreadAppWindowFrameand refusessplit-view-exitwithUNSUPPORTED_OPERATION(reason: 'split_view_unavailable',dispatched: 'no') when the app window frame fillsplan.viewport.packages/platform-apple/src/interactions.ts: passesreadAppWindowFrameviagestureViewport(includesKeyboard: true).packages/platform-apple/src/foldable/split-view.test.ts: added unit tests for full-panel refusal and active Split View exit.
Before / after
- Before:
swipe split-view-exitwith one full-screen app dispatches a pan gesture across the app. - After:
swipe split-view-exitrefuses before any touch withUNSUPPORTED_OPERATION(split_view_unavailable,dispatched: 'no'); active Split View still exits.
Validation
Tested at 5a0dad534e on 59a640c08d:
vitest run --project unit-coreon split-view, gestures, interaction-gesture-viewport, foldable runner requests, interactions, and index-runner-requests: 6 files, 46 tests passed.tsc -b tsconfig.typecheck.json examples/sdk/tsconfig.json: passed.oxlint . --deny-warningsandoxfmt --check: passed.
CI obligations: unit-core and Apple smoke lanes. Risks: none known.