]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Always execute last frame
authorTanner Linsley <tannerlinsley@gmail.com>
Sun, 12 Apr 2015 00:42:11 +0000 (18:42 -0600)
committerTanner Linsley <tannerlinsley@gmail.com>
Sun, 12 Apr 2015 00:42:11 +0000 (18:42 -0600)
src/Chart.Core.js

index 2c1229d157d349c130ffc66b65c1e522e9bc8a8b..e3a83ecab7a473f6cc0370233d827568740fe8f2 100755 (executable)
                                        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);