Fix live swipe paging and retain tilt preference on iOS
All checks were successful
Verify and publish Calio container / build-and-push (push) Successful in 29s

Replace the damped single-screen fade with live mobile panels on a shared composited rail, preserving per-tab scrolling and pausing offscreen physics. Center macro text and separate the saved tilt switch from session motion permission, resuming permission from a normal interaction. Validate live previews, interruption and multi-touch cancellation, relaunch, and permission races.
This commit is contained in:
Elijah 2026-10-22 10:11:55 -07:00
parent 7288e56c02
commit 3c0d6560f1
15 changed files with 784 additions and 263 deletions

View file

@ -215,7 +215,7 @@ export function Settings({
</div>
<div className="settings-section">
<h3>Look & feel</h3>
<div className="preference-row">
<div className="preference-row" data-tilt-control>
<label className="toggle-label">
<input
className="switch"
@ -228,13 +228,24 @@ export function Settings({
</div>
<p className="small muted" role="status">
{tilt.status === "denied"
? "Motion permission was not granted. Check your browser’s website permissions."
? "Tilt stays saved, but motion access was not granted. Allow motion or check your browser’s website permissions."
: tilt.status === "unavailable"
? "Orientation sensors are unavailable on this device. Bubbles still fall normally."
: tilt.status === "permission"
? "Enable tilt again to grant motion access for this session."
: "Uses this device’s orientation. iPhone may request permission again after reopening. Reduced motion pauses the animation."}
? "Tilt is saved. Motion access resumes on your next tap, or use Allow motion below."
: "Saved on this device. If iOS asks for motion access after reopening, allow it to resume tilt. Reduced motion pauses the animation."}
</p>
{tilt.enabled &&
(tilt.status === "permission" || tilt.status === "denied") && (
<button
className="secondary"
type="button"
data-tilt-control
onClick={() => void tilt.requestTiltPermission()}
>
Allow motion
</button>
)}
<div className="segmented theme-control">
{(
[