Skip to content

Improve UX of the fit-view button during animations - #222

Merged
vogelsgesang merged 2 commits into
mainfrom
fix-fit-view-restore
Oct 12, 2026
Merged

vogelsgesang merged 2 commits into
mainfrom
fix-fit-view-restore

Conversation

@vogelsgesang

Copy link
Copy Markdown
Collaborator

Rapid clicks on the fit-view control now reverse the active transition
while reusing the viewport captured before the first fit. Superseded
transitions cannot overwrite the latest toggle target or capture an
intermediate viewport.

Rapid clicks on the fit-view control now reverse the active transition
while reusing the viewport captured before the first fit. Superseded
transitions cannot overwrite the latest toggle target or capture an
intermediate viewport.
Use one active-transition token both to identify the latest asynchronous viewport transition and to mark it as running. Keep the captured viewport in one place and explicitly track when visible movement makes restoring available.
@vogelsgesang
vogelsgesang merged commit 68f3753 into main Oct 12, 2026
5 checks passed
@vogelsgesang
vogelsgesang deleted the fix-fit-view-restore branch October 12, 2026 14:44
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