Skip to content

Move the lineage zoom controls into the mobile transport pill - #40

Merged
PouyanJay merged 1 commit into
mainfrom
mobile-zoom-into-pill
Jul 26, 2026
Merged

Move the lineage zoom controls into the mobile transport pill#40
PouyanJay merged 1 commit into
mainfrom
mobile-zoom-into-pill

Conversation

@PouyanJay

Copy link
Copy Markdown
Owner

On a phone the floating zoom cluster (- / % / + / recenter) ate a lot of the canvas. Pinch already handles zoom in/out there, so the cluster is hidden on mobile and the one useful action - recenter ("fit the tree") - moves into the transport pill as one more bare icon. Desktop keeps the full cluster.

The canvas hands its recenter up via an onrecenterready callback (the same register pattern Canvas uses); the parent offers it to the pill only while the lineage canvas is the live view, so the button is absent in the focus view.

Verified: lint 0, check 0, unit 817/817, e2e 17/17 (responsive + canvas + inspector), build OK, and a functional test confirming the pill button re-frames the tree.

On a phone the floating zoom cluster (- / % / + / recenter) ate a lot of the
canvas. Pinch already handles zoom in/out there, so the cluster is hidden and
only the useful single action - "fit the tree" - moves into the transport pill
as one more bare icon. The canvas keeps its full cluster on desktop.

The canvas hands its recenter up via an onrecenterready callback (the same
register pattern Canvas uses); the parent passes it to the pill only while the
lineage canvas is the live view, so the button is absent in the focus view.
@PouyanJay
PouyanJay merged commit 94bdfa1 into main Jul 26, 2026
2 checks passed
@PouyanJay
PouyanJay deleted the mobile-zoom-into-pill branch July 26, 2026 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant