{"action":"opened","number":118,"pull_request":{"url":"https://api.github.com/repos/anvaka/VivaGraphJS/pulls/118","id":27448122,"html_url":"https://github.com/anvaka/VivaGraphJS/pull/118","diff_url":"https://github.com/anvaka/VivaGraphJS/pull/118.diff","patch_url":"https://github.com/anvaka/VivaGraphJS/pull/118.patch","issue_url":"https://api.github.com/repos/anvaka/VivaGraphJS/issues/118","number":118,"state":"open","locked":false,"title":"Fix mouse offset issue with webgl","user":{"login":"swordofpain","id":129217,"avatar_url":"https://avatars.githubusercontent.com/u/129217?v=3","gravatar_id":"","url":"https://api.github.com/users/swordofpain","html_url":"https://github.com/swordofpain","followers_url":"https://api.github.com/users/swordofpain/followers","following_url":"https://api.github.com/users/swordofpain/following{/other_user}","gists_url":"https://api.github.com/users/swordofpain/gists{/gist_id}","starred_url":"https://api.github.com/users/swordofpain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swordofpain/subscriptions","organizations_url":"https://api.github.com/users/swordofpain/orgs","repos_url":"https://api.github.com/users/swordofpain/repos","events_url":"https://api.github.com/users/swordofpain/events{/privacy}","received_events_url":"https://api.github.com/users/swordofpain/received_events","type":"User","site_admin":false},"body":"I faced issues with mouse events when the graph container wasn't at `(0, 0)`. I found out that when `updateBoundRect` was called, it reported the `<canvas>` being at `(0, 0)` even though it wasn't. Delaying the call to the function using `setTimeout` did the trick.","created_at":"2015-01-15T17:55:21Z","updated_at":"2015-01-15T17:55:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/anvaka/VivaGraphJS/pulls/118/commits","review_comments_url":"https://api.github.com/repos/anvaka/VivaGraphJS/pulls/118/comments","review_comment_url":"https://api.github.com/repos/anvaka/VivaGraphJS/pulls/comments/{number}","comments_url":"https://api.github.com/repos/anvaka/VivaGraphJS/issues/118/comments","statuses_url":"https://api.github.com/repos/anvaka/VivaGraphJS/statuses/139f545877318b9413e4354c5cdb5c3b3ba00ca8","head":{"label":"swordofpain:patch-1","ref":"patch-1","sha":"139f545877318b9413e4354c5cdb5c3b3ba00ca8","user":{"login":"swordofpain","id":129217,"avatar_url":"https://avatars.githubusercontent.com/u/129217?v=3","gravatar_id":"","url":"https://api.github.com/users/swordofpain","html_url":"https://github.com/swordofpain","followers_url":"https://api.github.com/users/swordofpain/followers","following_url":"https://api.github.com/users/swordofpain/following{/other_user}","gists_url":"https://api.github.com/users/swordofpain/gists{/gist_id}","starred_url":"https://api.github.com/users/swordofpain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swordofpain/subscriptions","organizations_url":"https://api.github.com/users/swordofpain/orgs","repos_url":"https://api.github.com/users/swordofpain/repos","events_url":"https://api.github.com/users/swordofpain/events{/privacy}","received_events_url":"https://api.github.com/users/swordofpain/received_events","type":"User","site_admin":false},"repo":{"id":29309925,"name":"VivaGraphJS","full_name":"swordofpain/VivaGraphJS","owner":{"login":"swordofpain","id":129217,"avatar_url":"https://avatars.githubusercontent.com/u/129217?v=3","gravatar_id":"","url":"https://api.github.com/users/swordofpain","html_url":"https://github.com/swordofpain","followers_url":"https://api.github.com/users/swordofpain/followers","following_url":"https://api.github.com/users/swordofpain/following{/other_user}","gists_url":"https://api.github.com/users/swordofpain/gists{/gist_id}","starred_url":"https://api.github.com/users/swordofpain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swordofpain/subscriptions","organizations_url":"https://api.github.com/users/swordofpain/orgs","repos_url":"https://api.github.com/users/swordofpain/repos","events_url":"https://api.github.com/users/swordofpain/events{/privacy}","received_events_url":"https://api.github.com/users/swordofpain/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/swordofpain/VivaGraphJS","description":"Graph drawing library for JavaScript","fork":true,"url":"https://api.github.com/repos/swordofpain/VivaGraphJS","forks_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/forks","keys_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/teams","hooks_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/hooks","issue_events_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/issues/events{/number}","events_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/events","assignees_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/assignees{/user}","branches_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/branches{/branch}","tags_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/tags","blobs_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/git/refs{/sha}","trees_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/statuses/{sha}","languages_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/languages","stargazers_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/stargazers","contributors_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/contributors","subscribers_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/subscribers","subscription_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/subscription","commits_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/commits{/sha}","git_commits_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/git/commits{/sha}","comments_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/comments{/number}","issue_comment_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/issues/comments/{number}","contents_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/contents/{+path}","compare_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/merges","archive_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/downloads","issues_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/issues{/number}","pulls_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/pulls{/number}","milestones_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/milestones{/number}","notifications_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/labels{/name}","releases_url":"https://api.github.com/repos/swordofpain/VivaGraphJS/releases{/id}","created_at":"2015-01-15T17:50:14Z","updated_at":"2015-01-15T17:50:14Z","pushed_at":"2015-01-15T17:55:08Z","git_url":"git://github.com/swordofpain/VivaGraphJS.git","ssh_url":"git@github.com:swordofpain/VivaGraphJS.git","clone_url":"https://github.com/swordofpain/VivaGraphJS.git","svn_url":"https://github.com/swordofpain/VivaGraphJS","homepage":"","size":2742,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"anvaka:master","ref":"master","sha":"0407f0776c9020484056cf2b7888ddc6d1f4703e","user":{"login":"anvaka","id":225407,"avatar_url":"https://avatars.githubusercontent.com/u/225407?v=3","gravatar_id":"","url":"https://api.github.com/users/anvaka","html_url":"https://github.com/anvaka","followers_url":"https://api.github.com/users/anvaka/followers","following_url":"https://api.github.com/users/anvaka/following{/other_user}","gists_url":"https://api.github.com/users/anvaka/gists{/gist_id}","starred_url":"https://api.github.com/users/anvaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anvaka/subscriptions","organizations_url":"https://api.github.com/users/anvaka/orgs","repos_url":"https://api.github.com/users/anvaka/repos","events_url":"https://api.github.com/users/anvaka/events{/privacy}","received_events_url":"https://api.github.com/users/anvaka/received_events","type":"User","site_admin":false},"repo":{"id":3003488,"name":"VivaGraphJS","full_name":"anvaka/VivaGraphJS","owner":{"login":"anvaka","id":225407,"avatar_url":"https://avatars.githubusercontent.com/u/225407?v=3","gravatar_id":"","url":"https://api.github.com/users/anvaka","html_url":"https://github.com/anvaka","followers_url":"https://api.github.com/users/anvaka/followers","following_url":"https://api.github.com/users/anvaka/following{/other_user}","gists_url":"https://api.github.com/users/anvaka/gists{/gist_id}","starred_url":"https://api.github.com/users/anvaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anvaka/subscriptions","organizations_url":"https://api.github.com/users/anvaka/orgs","repos_url":"https://api.github.com/users/anvaka/repos","events_url":"https://api.github.com/users/anvaka/events{/privacy}","received_events_url":"https://api.github.com/users/anvaka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anvaka/VivaGraphJS","description":"Graph drawing library for JavaScript","fork":false,"url":"https://api.github.com/repos/anvaka/VivaGraphJS","forks_url":"https://api.github.com/repos/anvaka/VivaGraphJS/forks","keys_url":"https://api.github.com/repos/anvaka/VivaGraphJS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anvaka/VivaGraphJS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anvaka/VivaGraphJS/teams","hooks_url":"https://api.github.com/repos/anvaka/VivaGraphJS/hooks","issue_events_url":"https://api.github.com/repos/anvaka/VivaGraphJS/issues/events{/number}","events_url":"https://api.github.com/repos/anvaka/VivaGraphJS/events","assignees_url":"https://api.github.com/repos/anvaka/VivaGraphJS/assignees{/user}","branches_url":"https://api.github.com/repos/anvaka/VivaGraphJS/branches{/branch}","tags_url":"https://api.github.com/repos/anvaka/VivaGraphJS/tags","blobs_url":"https://api.github.com/repos/anvaka/VivaGraphJS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anvaka/VivaGraphJS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anvaka/VivaGraphJS/git/refs{/sha}","trees_url":"https://api.github.com/repos/anvaka/VivaGraphJS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anvaka/VivaGraphJS/statuses/{sha}","languages_url":"https://api.github.com/repos/anvaka/VivaGraphJS/languages","stargazers_url":"https://api.github.com/repos/anvaka/VivaGraphJS/stargazers","contributors_url":"https://api.github.com/repos/anvaka/VivaGraphJS/contributors","subscribers_url":"https://api.github.com/repos/anvaka/VivaGraphJS/subscribers","subscription_url":"https://api.github.com/repos/anvaka/VivaGraphJS/subscription","commits_url":"https://api.github.com/repos/anvaka/VivaGraphJS/commits{/sha}","git_commits_url":"https://api.github.com/repos/anvaka/VivaGraphJS/git/commits{/sha}","comments_url":"https://api.github.com/repos/anvaka/VivaGraphJS/comments{/number}","issue_comment_url":"https://api.github.com/repos/anvaka/VivaGraphJS/issues/comments/{number}","contents_url":"https://api.github.com/repos/anvaka/VivaGraphJS/contents/{+path}","compare_url":"https://api.github.com/repos/anvaka/VivaGraphJS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anvaka/VivaGraphJS/merges","archive_url":"https://api.github.com/repos/anvaka/VivaGraphJS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anvaka/VivaGraphJS/downloads","issues_url":"https://api.github.com/repos/anvaka/VivaGraphJS/issues{/number}","pulls_url":"https://api.github.com/repos/anvaka/VivaGraphJS/pulls{/number}","milestones_url":"https://api.github.com/repos/anvaka/VivaGraphJS/milestones{/number}","notifications_url":"https://api.github.com/repos/anvaka/VivaGraphJS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anvaka/VivaGraphJS/labels{/name}","releases_url":"https://api.github.com/repos/anvaka/VivaGraphJS/releases{/id}","created_at":"2011-12-17T22:41:01Z","updated_at":"2015-01-14T15:26:33Z","pushed_at":"2014-12-31T03:24:11Z","git_url":"git://github.com/anvaka/VivaGraphJS.git","ssh_url":"git@github.com:anvaka/VivaGraphJS.git","clone_url":"https://github.com/anvaka/VivaGraphJS.git","svn_url":"https://github.com/anvaka/VivaGraphJS","homepage":"","size":2742,"stargazers_count":1205,"watchers_count":1205,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":164,"mirror_url":null,"open_issues_count":51,"forks":164,"open_issues":51,"watchers":1205,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/anvaka/VivaGraphJS/pulls/118"},"html":{"href":"https://github.com/anvaka/VivaGraphJS/pull/118"},"issue":{"href":"https://api.github.com/repos/anvaka/VivaGraphJS/issues/118"},"comments":{"href":"https://api.github.com/repos/anvaka/VivaGraphJS/issues/118/comments"},"review_comments":{"href":"https://api.github.com/repos/anvaka/VivaGraphJS/pulls/118/comments"},"review_comment":{"href":"https://api.github.com/repos/anvaka/VivaGraphJS/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/anvaka/VivaGraphJS/pulls/118/commits"},"statuses":{"href":"https://api.github.com/repos/anvaka/VivaGraphJS/statuses/139f545877318b9413e4354c5cdb5c3b3ba00ca8"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}