]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Optimize animation frame requests (#2268)
authorSimon Brunel <simonbrunel@users.noreply.github.com>
Sat, 16 Apr 2016 00:15:54 +0000 (02:15 +0200)
committerTanner Linsley <tannerlinsley@gmail.com>
Sat, 16 Apr 2016 00:15:54 +0000 (20:15 -0400)
commit5836c19ec52c3896c7c92d7a3f3355a6ee6be96b
treee2ead514d03e6c8ba2e74b61c7bb993e5a6e6fcf
parentfc74f98dd6fa6daddc16aa59c3d524c940633b11
Optimize animation frame requests (#2268)

The animation service now keeps track of the active animation frame request and will skip new requests until the current one is executed. This can happen when processing mouse events, e.g. 'mousemove' and 'mouseout' events will trigger multiple renders.
src/core/core.animation.js