Skip to content

fix: preserve slide state on queue transition#41

Merged
Xerrion merged 4 commits intomasterfrom
fix/preserve-slide-state-on-queue-transition
Feb 23, 2026
Merged

fix: preserve slide state on queue transition#41
Xerrion merged 4 commits intomasterfrom
fix/preserve-slide-state-on-queue-transition

Conversation

@Xerrion
Copy link
Copy Markdown
Owner

@Xerrion Xerrion commented Feb 23, 2026

No description provided.

When a queue transitions between entries (e.g. entrance -> hold),
StartQueueEntry calls Animate() which calls Stop(), destroying all
animation state including in-progress slide interpolation fields
and the current anchorX/Y position.

This causes frames mid-slide (via SlideAnchor) to snap to incorrect
positions when the queue advances, because both the slide target
coordinates and the current anchor position are lost.

Save and restore anchorX/Y along with the 7 slide fields around the
Animate() call in StartQueueEntry, following the existing savedQueue
preservation pattern. This ensures the frame continues from its
current mid-slide position without any visual discontinuity.
- Remove redundant `local` on prevState/newState reassignments (W411, W421)
- Replace undefined `opts` variable with inline options from entry fields (W113)
@Xerrion Xerrion merged commit 628e764 into master Feb 23, 2026
1 check passed
@Xerrion Xerrion deleted the fix/preserve-slide-state-on-queue-transition branch February 23, 2026 23:02
Xerrion pushed a commit that referenced this pull request Feb 23, 2026
🤖 I have created a release *beep* *boop*
---


## [3.5.3](3.5.2...3.5.3)
(2026-02-23)


### Bug Fixes

* preserve slide state on queue transition
([#41](#41))
([628e764](628e764))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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