Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions .changeset/fix-stop-autoplay.md

This file was deleted.

29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# @wbe/interpol

## 0.32.2

### Patch Changes

- 548492b: 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:

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

After:

```ts
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.

## 0.32.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@wbe/interpol",
"description": "Interpolates values with a GSAP-like API ~ 3kB",
"version": "0.32.1",
"version": "0.32.2",
"author": {
"name": "Willy Brauner",
"url": "https://willybrauner.com"
Expand Down
Loading