{"action":"created","issue":{"url":"https://api.github.com/repos/chartjs/Chart.js/issues/6104","repository_url":"https://api.github.com/repos/chartjs/Chart.js","labels_url":"https://api.github.com/repos/chartjs/Chart.js/issues/6104/labels{/name}","comments_url":"https://api.github.com/repos/chartjs/Chart.js/issues/6104/comments","events_url":"https://api.github.com/repos/chartjs/Chart.js/issues/6104/events","html_url":"https://github.com/chartjs/Chart.js/issues/6104","id":416384722,"node_id":"MDU6SXNzdWU0MTYzODQ3MjI=","number":6104,"title":"Chart does not properly update with animation in master","user":{"login":"emmcbd","id":42184090,"node_id":"MDQ6VXNlcjQyMTg0MDkw","avatar_url":"https://avatars2.githubusercontent.com/u/42184090?v=4","gravatar_id":"","url":"https://api.github.com/users/emmcbd","html_url":"https://github.com/emmcbd","followers_url":"https://api.github.com/users/emmcbd/followers","following_url":"https://api.github.com/users/emmcbd/following{/other_user}","gists_url":"https://api.github.com/users/emmcbd/gists{/gist_id}","starred_url":"https://api.github.com/users/emmcbd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emmcbd/subscriptions","organizations_url":"https://api.github.com/users/emmcbd/orgs","repos_url":"https://api.github.com/users/emmcbd/repos","events_url":"https://api.github.com/users/emmcbd/events{/privacy}","received_events_url":"https://api.github.com/users/emmcbd/received_events","type":"User","site_admin":false},"labels":[{"id":42400464,"node_id":"MDU6TGFiZWw0MjQwMDQ2NA==","url":"https://api.github.com/repos/chartjs/Chart.js/labels/status:%20needs%20test%20case","name":"status: needs test case","color":"fef2c0","default":false},{"id":32309884,"node_id":"MDU6TGFiZWwzMjMwOTg4NA==","url":"https://api.github.com/repos/chartjs/Chart.js/labels/type:%20bug","name":"type: bug","color":"dd3300","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-03-02T10:45:45Z","updated_at":"2019-03-02T13:35:08Z","closed_at":null,"author_association":"NONE","body":"Regression from #5331 \r\n\r\nI have a chart parameterized by a slider, so as the user is moving the slider, I repeatedly call update() on the chart to reflect the new parameter value in real time.\r\n\r\nIt is working well with version 2.7.3, but when testing with master, the chart does not update until the user stops moving the slider.\r\n\r\nI found that this is a regression from #5331 which removes the drop frame mechanism. As the update() method is called nearly each frame, the animation start time is also reset each frame, and consequently the chart is updated each frame with an animation progress of zero.\r\n\r\nThe same bug appears on tooltip animation with a line chart configured like this:\r\n\r\n`                tooltips: {\r\n                    mode: 'nearest',\r\n                    intersect: false\r\n                }\r\n`\r\nAs moving the mouse cursor on the chart:\r\n\r\n- In 2.7.3 the tooltip follows the cursor\r\n- In master the tooltip does not move until we stop moving the cursor"},"comment":{"url":"https://api.github.com/repos/chartjs/Chart.js/issues/comments/468921197","html_url":"https://github.com/chartjs/Chart.js/issues/6104#issuecomment-468921197","issue_url":"https://api.github.com/repos/chartjs/Chart.js/issues/6104","id":468921197,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2ODkyMTE5Nw==","user":{"login":"emmcbd","id":42184090,"node_id":"MDQ6VXNlcjQyMTg0MDkw","avatar_url":"https://avatars2.githubusercontent.com/u/42184090?v=4","gravatar_id":"","url":"https://api.github.com/users/emmcbd","html_url":"https://github.com/emmcbd","followers_url":"https://api.github.com/users/emmcbd/followers","following_url":"https://api.github.com/users/emmcbd/following{/other_user}","gists_url":"https://api.github.com/users/emmcbd/gists{/gist_id}","starred_url":"https://api.github.com/users/emmcbd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emmcbd/subscriptions","organizations_url":"https://api.github.com/users/emmcbd/orgs","repos_url":"https://api.github.com/users/emmcbd/repos","events_url":"https://api.github.com/users/emmcbd/events{/privacy}","received_events_url":"https://api.github.com/users/emmcbd/received_events","type":"User","site_admin":false},"created_at":"2019-03-02T13:35:08Z","updated_at":"2019-03-02T13:35:08Z","author_association":"NONE","body":"Here a reproduce case with tooltips, which is easier to reproduce:\r\n\r\nhttps://codepen.io/anon/pen/pYyWbK\r\n\r\nQuickly move your mouse over the chart, you will see that the tooltip does not move (or with very jerky animation) until you  stop moving.\r\n\r\nIf you switch back Chart.js to version 2.7.3, or revert #5331, everything is fine again."}}
{"actor":{"display_login":"emmcbd"}}