{"action":"opened","issue":{"url":"https://api.github.com/repos/VincentGarreau/particles.js/issues/150","repository_url":"https://api.github.com/repos/VincentGarreau/particles.js","labels_url":"https://api.github.com/repos/VincentGarreau/particles.js/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/VincentGarreau/particles.js/issues/150/comments","events_url":"https://api.github.com/repos/VincentGarreau/particles.js/issues/150/events","html_url":"https://github.com/VincentGarreau/particles.js/issues/150","id":181094579,"number":150,"title":"Grab mode animation cursor position is not always correctly in sync with mouse position","user":{"login":"OroianRares","id":11268478,"avatar_url":"https://avatars.githubusercontent.com/u/11268478?v=3","gravatar_id":"","url":"https://api.github.com/users/OroianRares","html_url":"https://github.com/OroianRares","followers_url":"https://api.github.com/users/OroianRares/followers","following_url":"https://api.github.com/users/OroianRares/following{/other_user}","gists_url":"https://api.github.com/users/OroianRares/gists{/gist_id}","starred_url":"https://api.github.com/users/OroianRares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OroianRares/subscriptions","organizations_url":"https://api.github.com/users/OroianRares/orgs","repos_url":"https://api.github.com/users/OroianRares/repos","events_url":"https://api.github.com/users/OroianRares/events{/privacy}","received_events_url":"https://api.github.com/users/OroianRares/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-05T08:36:45Z","updated_at":"2016-10-05T08:36:45Z","closed_at":null,"body":"When `iteractivity.detect_on` property is set to `window` and grab mode is activated on hover, the canvas listens to mousemove events and updates the \"central link point\" during the animation. Currently it does this by using `clientX` and `clientY` coordinates from the event object but this set of coordinates is only relative to the viewport of the browser and it does not take into account any kind of page scroll offset. Thus, by scrolling down the page, the animation \"central link point\" is upper than the place where the mouse icon is drawn.\r\n\r\nProposed solutions: Use `pageX` and `pageY` instead of `clientX` and `clientY`, because they also contain the scroll offset values."}}
{"actor":{"display_login":"OroianRares"}}