Skip to content

Commit

Permalink
fix: fix sometime onfinish not invoke (#1715)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarebecca authored Jun 28, 2024
1 parent 277abff commit 39af11f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/g-camera-api/src/AdvancedCamera.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export class AdvancedCamera extends Camera {
}
const elapsed = timestamp - timeStart;

if (elapsed > duration) {
if (elapsed >= duration) {
endAnimation();
return;
}
Expand Down

0 comments on commit 39af11f

Please sign in to comment.