Skip to content

fix: fix stop autoplay - #235

Merged
willybrauner merged 1 commit into
mainfrom
fix/fix-stop-autoplay
Oct 10, 2026
Merged

willybrauner merged 1 commit into
mainfrom
fix/fix-stop-autoplay

Conversation

@willybrauner

Copy link
Copy Markdown
Owner

Fix Timeline autoplay not being canceled by an explicit call made synchronously after add(). An explicit stop(), play() or reverse() now cancels the pending autoplay.

Before:

const tl = new Timeline()
tl.add({ /* ... */ })
// ignored: the timeline was played anyway by the autoplay,
// and stayed registered in the ticker
tl.stop()

After:

const tl = new Timeline()
tl.add({ /* ... */ })
// cancels the pending autoplay: the timeline stays stopped
tl.stop()

Same for reverse(), which was switched back to forward by the autoplay and now stays reversed.

To dispose an instance, stop() it and drop your reference: nothing else retains it.

@changeset-bot

changeset-bot Bot commented Oct 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6968969

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@wbe/interpol Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@willybrauner

Copy link
Copy Markdown
Owner Author

size-limit report 📦

Path Size
@wbe/interpol 3.45 KB (+0.12% 🔺)

@willybrauner
willybrauner merged commit 548492b into main Oct 10, 2026
2 checks passed
@willybrauner
willybrauner deleted the fix/fix-stop-autoplay branch October 10, 2026 12:26
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