Skip to content

[2/2] feat: adapt the timeline toolbar to touch layouts - #334

Merged
dazzatronus merged 1 commit into
feat/touch-lift-lookfrom
feat/layout-tiers
Dec 3, 2026
Merged

dazzatronus merged 1 commit into
feat/touch-lift-lookfrom
feat/layout-tiers

Conversation

@dazzatronus

@dazzatronus dazzatronus commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Later touch work (an action bar, sheets, a stationary playhead) needs to know which layout it's in, and the toolbar's 28 px buttons are too small for fingers.

Each component now picks a tier from its own container:

  • compact: a coarse pointer, with the container under 640 px wide or the window under 480 px tall;
  • touch-wide: any other coarse pointer;
  • desktop: a fine pointer.

The timeline root carries data-ss-tier. In the two touch tiers, the toolbar buttons are 44 px and the zoom slider gives way to − and +; pinch still zooms. Desktop is unchanged.

The height comes from documentElement.clientHeight, never the visual viewport, so the on-screen keyboard can't change the tier. Some WebViews shrink the layout viewport for the keyboard, so while a field has focus the height verdict holds. Below 380 px, the time readout truncates rather than run under − and +.

Verify:

  • The tier reads compact on the iPhone in portrait (402×714) and landscape (874×292) and on the Pixel 8 (412×784), touch-wide on the iPad simulator in both orientations, and desktop at 1280 and 500 px.
  • On the phones, the buttons are 44×44 and the slider is hidden.
  • − and + zoom 50 → 60 → 50 px/s, and the readout stays 12 px clear of zoom-out.
  • Opening the keyboard keeps the tier compact.
# PR Adds Why it is separate
1/2 #333 A lifted clip looks lifted Visual feedback only, works alone
2/2 #334 (this PR) Layout tiers and the touch toolbar Tier detection that later touch layouts build on

Merge bottom-up. Retarget the 2/2 PR to main after the 1/2 lands.

@dazzatronus
dazzatronus added this pull request to stack #338 December 3, 2026 10:28
@dazzatronus
dazzatronus merged commit 9ffcac0 into main Dec 3, 2026
1 check passed
github-actions Bot pushed a commit that referenced this pull request Dec 3, 2026
# [2.36.0](v2.35.0...v2.36.0) (2026-12-03)

### Bug Fixes

* keep the drag ghost under its clip when the timeline is scrolled ([#337](#337)) ([8157710](8157710))

### Features

* adapt the timeline toolbar to touch layouts ([#334](#334)) ([9ffcac0](9ffcac0))
* make canvas selection handles easier to hit on touch ([#335](#335)) ([0f0fcac](0f0fcac))
* pinch and twist the selected canvas clip on touch ([#336](#336)) ([e77dc9f](e77dc9f))
* show a clip as lifted during a long press ([#333](#333)) ([122a661](122a661))
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 2.36.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant