Skip to content

Commit 812eb48

Browse files
committed
fix(sdk): Async animation now correctly interrupted when play is pressed
1 parent 1b48e0a commit 812eb48

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

engine/core/src/main/resources/view/core/Drawer.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,8 @@ export class Drawer {
452452
if (!force && this.stepByStepAnimateSpeed && this.checkSteppedToNextFrame(scope, parsedFrame)) {
453453
this.startAsynchronousAnimation(scope, progress, parsedFrame)
454454
return
455+
} else if (!force) {
456+
scope.targetProgress = null
455457
}
456458

457459
/** ************************************* */

playground/misc/misc-3-release-notes.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
The CodinGame SDK is regularly updated and improved. This document lets you know what changed in the latest releases.
44

5+
## Next Release
6+
7+
### 🐞 Bug fix
8+
9+
- Fixed choppy animation when launching games with a `stepByStepAnimateSpeed`
10+
511
## 3.11.0
612

713
### 🎁 Features

0 commit comments

Comments
 (0)