mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Always execute last frame
This commit is contained in:
parent
99bf85e913
commit
70b8bf106c
@ -2132,6 +2132,9 @@
|
||||
currentAnimation.animationObject.currentStep = 0;
|
||||
} else {
|
||||
currentAnimation.animationObject.currentStep += 1 + framesToDrop;
|
||||
if(currentAnimation.animationObject.currentStep > currentAnimation.animationObject.numSteps){
|
||||
currentAnimation.animationObject.currentStep = currentAnimation.animationObject.numSteps;
|
||||
}
|
||||
}
|
||||
|
||||
currentAnimation.animationObject.render(currentAnimation.chartInstance, currentAnimation.animationObject);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user