# takeoff-player v0.3.1: mobile pass (m3p8q2vd)

Lane: player, Ansel, 2026-10-25. Stephen: *"on takeoff player try to be mobile responsive."* Follows
[takeoff-player-track-object_t7k4m9xq.md](takeoff-player-track-object_t7k4m9xq.md) (v0.3.0). Only `artifacts/takeoff-player/`
was edited. The desktop layout is unchanged (checked at 1500x880: `body.mob` is off and the page looks the same as v0.3.0).

Open on a phone: https://stephenguerin.live/agents/8ac6d87f-3192-4fdb-a260-583dbee74291/artifacts/takeoff-player/index.html
(or through https://imageryintel.org/stories/2026-10-24-bos-takeoff/artifacts/takeoff-player/index.html, which serves the same
files and the frame service). Links: `?track=AAL1205`, `?fix=115531:16.15&rect=3000,2250,1900,1070`.

## What changed

**Mode.** `body.mob` is set by `matchMedia('(pointer: coarse), (hover: none), (max-width: 760px)')` and re-evaluated on
resize and rotation. `body.short` marks phone landscape (height below 520 px).

**Layout.**
- Video first; the map is a sheet. The **map** button opens it as a bottom sheet in portrait and a right-side sheet in
  landscape. It has a grip and a × button.
- The top bar is one row inside the safe areas (`viewport-fit=cover`, `env(safe-area-inset-*)`).
- Over the video sit the picture chip, the track list, × (stop tracking) and **⋯**. ⋯ opens the other controls as a menu:
  labels (L), coast (C), fix view (F), fix area (A), lock (K), behind (B), prefetch 8K, export anchors.
- The dock has a frame-back / play / frame-forward row (44-52 px buttons) with a one-line clock, then the calibration line
  and a 50 px scrub bar with a thumb.
- Readouts (caveat, calibration, the fixed and track readouts) are one line; tap to expand.

**Touch.**
- Pinch and drag zoom and pan the picture, and in the track view pinch sets the window. Pinch is incremental now.
- The page itself does not zoom (`touch-action: pan-x pan-y`, and iOS `gesturestart` is blocked).
- Tap a label to track, with a 24 px hit radius.
- **Long-press 0.5 s, then drag** draws the fix-area rectangle.
- **Swipe the time bar to scrub** within the clip under the finger; a tap or a release over another clip goes there.
  Desktop gets swipe-to-scrub too, with the same look.

**Memory.**
- Paused on a phone, there is no 7680 px still. The picture is the **exact 8K frame cropped to what is on screen**, from the
  frame service, at most `innerWidth × devicePixelRatio` wide. It is re-requested after a pinch or pan.
- The fixed view's and the chase's 8K windows use the same cap.
- The crop cache holds 4 entries and the chase's decoded bitmaps 16.
- **Prefetch 8K asks first on mobile**, with the frame count, the estimated MB and the minutes (AAL1205: 103 frames, about 27 MB at 390x844 @3x).

**State.** Rotation keeps the state: same object, same frame (checked). Fullscreen and hide-UI are the house FABs at 44 px.

## Verified (headless Chrome, device metrics + touch emulation, real `Input.dispatchTouchEvent`; `verify/mobile.mjs`)

Devices: iPhone 14 (390x844 @3, and 844x390), Pixel 7 (412x915 @2.625, and 915x412), iPad (768x1024 and 1024x768 @2).
The same run was also done through the imageryintel.org proxy (iPhone 14, Pixel 7).

On every device, in every state (default, map sheet, menu, fixed, track, rotated):
- no horizontal overflow (UI elements stay inside `innerWidth`, `scrollWidth == innerWidth`);
- **no tap target under 44x44**. Inline attribution and popup text links are excluded, as WCAG 2.5.8 allows. The map's
  photo squares got 44 px hit areas;
- **no console errors**.

Gestures and features, checked:

| check | result |
|---|---|
| tap the AAL1205 label | tracks it |
| map button | opens the sheet |
| pinch on the paused picture | zoom 7x, page scale stays 1, exact 8K crop loaded ("8K f35 100%") |
| swipe the time bar | 1.3 s → 13.9 s |
| long-press + drag | fixed area, URL updated |
| tap the readout | expands |
| `?fix=` link | opens with the exact 8K frame, lock ok, residual 0.1-0.2 px |
| `?track=AAL1205` | chase from 8K windows of 1082-2532 px out (the screen width) |
| rotate while tracking | same object, same frame |

Screenshots, all `verify/mobile_*.png`:
- iPhone 14: `iphone14_default`, `_menu`, `_map-sheet`, `_8k-pinch`, `_fixed-view`, `_track-chase`, `_track-rotated`,
  `_longpress-fix-area`, `_readout-expanded`, `_tap-label-tracking`;
- `pixel7_8k-pinch`, and `pixel7-landscape_*`;
- `ipad768_*`, `ipad1024_*`;
- `imageryintel_iphone14_*`.

Numbers: `verify/mobile-results.json`.

Fixed after looking at the screenshots:
- the grid column grew to the width of the one-line text (527 px on a 390 px phone): `minmax(0, 1fr)`;
- the bar buttons slid under the FABs;
- the landscape sheet's × sat under the FABs (the sheet now starts below the bar);
- the attribution covered the readout, so taps missed it;
- the menu was drawn under the caveat;
- the clock was truncated by "hold field";
- page pinch-zoom in landscape (`touch-action: manipulation` still allows pinch-zoom).

## Limits

- Real iOS Safari was not tested, only Chrome's emulation. iOS ignores `user-scalable` and `touch-action` in places, so the
  `gesturestart` block is there for it. Fullscreen on an iPhone is not available to web pages; hide-UI is the fallback there.
- Two-finger drag is not used for the rectangle (it is the pinch); long-press is.
- In phone portrait a 16:9 frame fills only the middle third of the pane; pinch to fill.
