{"action":"created","issue":{"url":"https://api.github.com/repos/chartjs/Chart.js/issues/5575","repository_url":"https://api.github.com/repos/chartjs/Chart.js","labels_url":"https://api.github.com/repos/chartjs/Chart.js/issues/5575/labels{/name}","comments_url":"https://api.github.com/repos/chartjs/Chart.js/issues/5575/comments","events_url":"https://api.github.com/repos/chartjs/Chart.js/issues/5575/events","html_url":"https://github.com/chartjs/Chart.js/pull/5575","id":333702529,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1ODUxNDQy","number":5575,"title":"Event handling to use target instead currentTarget","user":{"login":"teroman","id":34158322,"node_id":"MDQ6VXNlcjM0MTU4MzIy","avatar_url":"https://avatars0.githubusercontent.com/u/34158322?v=4","gravatar_id":"","url":"https://api.github.com/users/teroman","html_url":"https://github.com/teroman","followers_url":"https://api.github.com/users/teroman/followers","following_url":"https://api.github.com/users/teroman/following{/other_user}","gists_url":"https://api.github.com/users/teroman/gists{/gist_id}","starred_url":"https://api.github.com/users/teroman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teroman/subscriptions","organizations_url":"https://api.github.com/users/teroman/orgs","repos_url":"https://api.github.com/users/teroman/repos","events_url":"https://api.github.com/users/teroman/events{/privacy}","received_events_url":"https://api.github.com/users/teroman/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":816781021,"node_id":"MDU6TGFiZWw4MTY3ODEwMjE=","url":"https://api.github.com/repos/chartjs/Chart.js/labels/status:%20stale","name":"status: stale","color":"dddddd","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-06-19T14:39:55Z","updated_at":"2018-08-09T11:02:14Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/chartjs/Chart.js/pulls/5575","html_url":"https://github.com/chartjs/Chart.js/pull/5575","diff_url":"https://github.com/chartjs/Chart.js/pull/5575.diff","patch_url":"https://github.com/chartjs/Chart.js/pull/5575.patch"},"body":"If you attach event handlers to a container rather than directly to the canvas then the currentTarget is the container, event.target is the canvas that triggers the event.\r\nIt's useful to do this if you have many charts or are creating them dynamically."},"comment":{"url":"https://api.github.com/repos/chartjs/Chart.js/issues/comments/411720412","html_url":"https://github.com/chartjs/Chart.js/pull/5575#issuecomment-411720412","issue_url":"https://api.github.com/repos/chartjs/Chart.js/issues/5575","id":411720412,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTcyMDQxMg==","user":{"login":"teroman","id":34158322,"node_id":"MDQ6VXNlcjM0MTU4MzIy","avatar_url":"https://avatars0.githubusercontent.com/u/34158322?v=4","gravatar_id":"","url":"https://api.github.com/users/teroman","html_url":"https://github.com/teroman","followers_url":"https://api.github.com/users/teroman/followers","following_url":"https://api.github.com/users/teroman/following{/other_user}","gists_url":"https://api.github.com/users/teroman/gists{/gist_id}","starred_url":"https://api.github.com/users/teroman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teroman/subscriptions","organizations_url":"https://api.github.com/users/teroman/orgs","repos_url":"https://api.github.com/users/teroman/repos","events_url":"https://api.github.com/users/teroman/events{/privacy}","received_events_url":"https://api.github.com/users/teroman/received_events","type":"User","site_admin":false},"created_at":"2018-08-09T11:02:14Z","updated_at":"2018-08-09T11:02:14Z","author_association":"CONTRIBUTOR","body":"Hi,\r\n\r\nI'm not sure how to write a test for an interactive event like this. I can't see any existing tests that call getElementAtEvent or getRelativePosition. If you could point me to any existing test for those I will try to adapt them to test this change."}}
{"actor":{"display_login":"teroman"}}