{"action":"created","comment":{"url":"https://api.github.com/repos/aghinz2015/foram-3d/pulls/comments/46175393","id":46175393,"diff_hunk":"@@ -239,6 +251,11 @@ module Foram3D {\n       ]\n     }\n \n+    private setupMouseEvents() {\n+      window.addEventListener('click',     (event: Event) => this.onMouseClick(event));","path":"src/foram3d/simulation.ts","position":38,"original_position":38,"commit_id":"4b7a62a4eb3de2cc634ad53bfb4e787cbcbeefde","original_commit_id":"4b7a62a4eb3de2cc634ad53bfb4e787cbcbeefde","user":{"login":"fanfilmu","id":6442907,"avatar_url":"https://avatars.githubusercontent.com/u/6442907?v=3","gravatar_id":"","url":"https://api.github.com/users/fanfilmu","html_url":"https://github.com/fanfilmu","followers_url":"https://api.github.com/users/fanfilmu/followers","following_url":"https://api.github.com/users/fanfilmu/following{/other_user}","gists_url":"https://api.github.com/users/fanfilmu/gists{/gist_id}","starred_url":"https://api.github.com/users/fanfilmu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fanfilmu/subscriptions","organizations_url":"https://api.github.com/users/fanfilmu/orgs","repos_url":"https://api.github.com/users/fanfilmu/repos","events_url":"https://api.github.com/users/fanfilmu/events{/privacy}","received_events_url":"https://api.github.com/users/fanfilmu/received_events","type":"User","site_admin":false},"body":"Również pod względem wydajności, lepiej byłoby bindować się do `canvas` niż do `window`, ale musisz sprawdzić jak jest z kompatybilnością bindowania MouseEvents na elementy. IMO powinno działać (na Chrome działa :P) ale jeżeli wsparcie jest słabe to nie da rady tego tak zrobić.","created_at":"2015-11-30T17:38:13Z","updated_at":"2015-11-30T17:38:13Z","html_url":"https://github.com/aghinz2015/foram-3d/pull/16#discussion_r46175393","pull_request_url":"https://api.github.com/repos/aghinz2015/foram-3d/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/aghinz2015/foram-3d/pulls/comments/46175393"},"html":{"href":"https://github.com/aghinz2015/foram-3d/pull/16#discussion_r46175393"},"pull_request":{"href":"https://api.github.com/repos/aghinz2015/foram-3d/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/aghinz2015/foram-3d/pulls/16","id":52068830,"html_url":"https://github.com/aghinz2015/foram-3d/pull/16","diff_url":"https://github.com/aghinz2015/foram-3d/pull/16.diff","patch_url":"https://github.com/aghinz2015/foram-3d/pull/16.patch","issue_url":"https://api.github.com/repos/aghinz2015/foram-3d/issues/16","number":16,"state":"open","locked":false,"title":"[FORAM-200] Chamber tooltip","user":{"login":"bzurkowski","id":6787563,"avatar_url":"https://avatars.githubusercontent.com/u/6787563?v=3","gravatar_id":"","url":"https://api.github.com/users/bzurkowski","html_url":"https://github.com/bzurkowski","followers_url":"https://api.github.com/users/bzurkowski/followers","following_url":"https://api.github.com/users/bzurkowski/following{/other_user}","gists_url":"https://api.github.com/users/bzurkowski/gists{/gist_id}","starred_url":"https://api.github.com/users/bzurkowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bzurkowski/subscriptions","organizations_url":"https://api.github.com/users/bzurkowski/orgs","repos_url":"https://api.github.com/users/bzurkowski/repos","events_url":"https://api.github.com/users/bzurkowski/events{/privacy}","received_events_url":"https://api.github.com/users/bzurkowski/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-29T19:28:27Z","updated_at":"2015-11-30T17:38:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3070317ed57f0338571bdf6187a522c41ee14abc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aghinz2015/foram-3d/pulls/16/commits","review_comments_url":"https://api.github.com/repos/aghinz2015/foram-3d/pulls/16/comments","review_comment_url":"https://api.github.com/repos/aghinz2015/foram-3d/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aghinz2015/foram-3d/issues/16/comments","statuses_url":"https://api.github.com/repos/aghinz2015/foram-3d/statuses/4b7a62a4eb3de2cc634ad53bfb4e787cbcbeefde","head":{"label":"aghinz2015:FORAM-200-chamber-tooltip","ref":"FORAM-200-chamber-tooltip","sha":"4b7a62a4eb3de2cc634ad53bfb4e787cbcbeefde","user":{"login":"aghinz2015","id":13819061,"avatar_url":"https://avatars.githubusercontent.com/u/13819061?v=3","gravatar_id":"","url":"https://api.github.com/users/aghinz2015","html_url":"https://github.com/aghinz2015","followers_url":"https://api.github.com/users/aghinz2015/followers","following_url":"https://api.github.com/users/aghinz2015/following{/other_user}","gists_url":"https://api.github.com/users/aghinz2015/gists{/gist_id}","starred_url":"https://api.github.com/users/aghinz2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aghinz2015/subscriptions","organizations_url":"https://api.github.com/users/aghinz2015/orgs","repos_url":"https://api.github.com/users/aghinz2015/repos","events_url":"https://api.github.com/users/aghinz2015/events{/privacy}","received_events_url":"https://api.github.com/users/aghinz2015/received_events","type":"Organization","site_admin":false},"repo":{"id":40829361,"name":"foram-3d","full_name":"aghinz2015/foram-3d","owner":{"login":"aghinz2015","id":13819061,"avatar_url":"https://avatars.githubusercontent.com/u/13819061?v=3","gravatar_id":"","url":"https://api.github.com/users/aghinz2015","html_url":"https://github.com/aghinz2015","followers_url":"https://api.github.com/users/aghinz2015/followers","following_url":"https://api.github.com/users/aghinz2015/following{/other_user}","gists_url":"https://api.github.com/users/aghinz2015/gists{/gist_id}","starred_url":"https://api.github.com/users/aghinz2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aghinz2015/subscriptions","organizations_url":"https://api.github.com/users/aghinz2015/orgs","repos_url":"https://api.github.com/users/aghinz2015/repos","events_url":"https://api.github.com/users/aghinz2015/events{/privacy}","received_events_url":"https://api.github.com/users/aghinz2015/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aghinz2015/foram-3d","description":"","fork":false,"url":"https://api.github.com/repos/aghinz2015/foram-3d","forks_url":"https://api.github.com/repos/aghinz2015/foram-3d/forks","keys_url":"https://api.github.com/repos/aghinz2015/foram-3d/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aghinz2015/foram-3d/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aghinz2015/foram-3d/teams","hooks_url":"https://api.github.com/repos/aghinz2015/foram-3d/hooks","issue_events_url":"https://api.github.com/repos/aghinz2015/foram-3d/issues/events{/number}","events_url":"https://api.github.com/repos/aghinz2015/foram-3d/events","assignees_url":"https://api.github.com/repos/aghinz2015/foram-3d/assignees{/user}","branches_url":"https://api.github.com/repos/aghinz2015/foram-3d/branches{/branch}","tags_url":"https://api.github.com/repos/aghinz2015/foram-3d/tags","blobs_url":"https://api.github.com/repos/aghinz2015/foram-3d/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aghinz2015/foram-3d/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aghinz2015/foram-3d/git/refs{/sha}","trees_url":"https://api.github.com/repos/aghinz2015/foram-3d/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aghinz2015/foram-3d/statuses/{sha}","languages_url":"https://api.github.com/repos/aghinz2015/foram-3d/languages","stargazers_url":"https://api.github.com/repos/aghinz2015/foram-3d/stargazers","contributors_url":"https://api.github.com/repos/aghinz2015/foram-3d/contributors","subscribers_url":"https://api.github.com/repos/aghinz2015/foram-3d/subscribers","subscription_url":"https://api.github.com/repos/aghinz2015/foram-3d/subscription","commits_url":"https://api.github.com/repos/aghinz2015/foram-3d/commits{/sha}","git_commits_url":"https://api.github.com/repos/aghinz2015/foram-3d/git/commits{/sha}","comments_url":"https://api.github.com/repos/aghinz2015/foram-3d/comments{/number}","issue_comment_url":"https://api.github.com/repos/aghinz2015/foram-3d/issues/comments{/number}","contents_url":"https://api.github.com/repos/aghinz2015/foram-3d/contents/{+path}","compare_url":"https://api.github.com/repos/aghinz2015/foram-3d/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aghinz2015/foram-3d/merges","archive_url":"https://api.github.com/repos/aghinz2015/foram-3d/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aghinz2015/foram-3d/downloads","issues_url":"https://api.github.com/repos/aghinz2015/foram-3d/issues{/number}","pulls_url":"https://api.github.com/repos/aghinz2015/foram-3d/pulls{/number}","milestones_url":"https://api.github.com/repos/aghinz2015/foram-3d/milestones{/number}","notifications_url":"https://api.github.com/repos/aghinz2015/foram-3d/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aghinz2015/foram-3d/labels{/name}","releases_url":"https://api.github.com/repos/aghinz2015/foram-3d/releases{/id}","created_at":"2015-08-16T17:06:49Z","updated_at":"2015-08-16T17:06:55Z","pushed_at":"2015-11-29T19:28:27Z","git_url":"git://github.com/aghinz2015/foram-3d.git","ssh_url":"git@github.com:aghinz2015/foram-3d.git","clone_url":"https://github.com/aghinz2015/foram-3d.git","svn_url":"https://github.com/aghinz2015/foram-3d","homepage":null,"size":419,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"aghinz2015:development","ref":"development","sha":"029c60a6d8dfc2ca0974dccc02b0f18ea743c066","user":{"login":"aghinz2015","id":13819061,"avatar_url":"https://avatars.githubusercontent.com/u/13819061?v=3","gravatar_id":"","url":"https://api.github.com/users/aghinz2015","html_url":"https://github.com/aghinz2015","followers_url":"https://api.github.com/users/aghinz2015/followers","following_url":"https://api.github.com/users/aghinz2015/following{/other_user}","gists_url":"https://api.github.com/users/aghinz2015/gists{/gist_id}","starred_url":"https://api.github.com/users/aghinz2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aghinz2015/subscriptions","organizations_url":"https://api.github.com/users/aghinz2015/orgs","repos_url":"https://api.github.com/users/aghinz2015/repos","events_url":"https://api.github.com/users/aghinz2015/events{/privacy}","received_events_url":"https://api.github.com/users/aghinz2015/received_events","type":"Organization","site_admin":false},"repo":{"id":40829361,"name":"foram-3d","full_name":"aghinz2015/foram-3d","owner":{"login":"aghinz2015","id":13819061,"avatar_url":"https://avatars.githubusercontent.com/u/13819061?v=3","gravatar_id":"","url":"https://api.github.com/users/aghinz2015","html_url":"https://github.com/aghinz2015","followers_url":"https://api.github.com/users/aghinz2015/followers","following_url":"https://api.github.com/users/aghinz2015/following{/other_user}","gists_url":"https://api.github.com/users/aghinz2015/gists{/gist_id}","starred_url":"https://api.github.com/users/aghinz2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aghinz2015/subscriptions","organizations_url":"https://api.github.com/users/aghinz2015/orgs","repos_url":"https://api.github.com/users/aghinz2015/repos","events_url":"https://api.github.com/users/aghinz2015/events{/privacy}","received_events_url":"https://api.github.com/users/aghinz2015/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aghinz2015/foram-3d","description":"","fork":false,"url":"https://api.github.com/repos/aghinz2015/foram-3d","forks_url":"https://api.github.com/repos/aghinz2015/foram-3d/forks","keys_url":"https://api.github.com/repos/aghinz2015/foram-3d/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aghinz2015/foram-3d/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aghinz2015/foram-3d/teams","hooks_url":"https://api.github.com/repos/aghinz2015/foram-3d/hooks","issue_events_url":"https://api.github.com/repos/aghinz2015/foram-3d/issues/events{/number}","events_url":"https://api.github.com/repos/aghinz2015/foram-3d/events","assignees_url":"https://api.github.com/repos/aghinz2015/foram-3d/assignees{/user}","branches_url":"https://api.github.com/repos/aghinz2015/foram-3d/branches{/branch}","tags_url":"https://api.github.com/repos/aghinz2015/foram-3d/tags","blobs_url":"https://api.github.com/repos/aghinz2015/foram-3d/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aghinz2015/foram-3d/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aghinz2015/foram-3d/git/refs{/sha}","trees_url":"https://api.github.com/repos/aghinz2015/foram-3d/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aghinz2015/foram-3d/statuses/{sha}","languages_url":"https://api.github.com/repos/aghinz2015/foram-3d/languages","stargazers_url":"https://api.github.com/repos/aghinz2015/foram-3d/stargazers","contributors_url":"https://api.github.com/repos/aghinz2015/foram-3d/contributors","subscribers_url":"https://api.github.com/repos/aghinz2015/foram-3d/subscribers","subscription_url":"https://api.github.com/repos/aghinz2015/foram-3d/subscription","commits_url":"https://api.github.com/repos/aghinz2015/foram-3d/commits{/sha}","git_commits_url":"https://api.github.com/repos/aghinz2015/foram-3d/git/commits{/sha}","comments_url":"https://api.github.com/repos/aghinz2015/foram-3d/comments{/number}","issue_comment_url":"https://api.github.com/repos/aghinz2015/foram-3d/issues/comments{/number}","contents_url":"https://api.github.com/repos/aghinz2015/foram-3d/contents/{+path}","compare_url":"https://api.github.com/repos/aghinz2015/foram-3d/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aghinz2015/foram-3d/merges","archive_url":"https://api.github.com/repos/aghinz2015/foram-3d/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aghinz2015/foram-3d/downloads","issues_url":"https://api.github.com/repos/aghinz2015/foram-3d/issues{/number}","pulls_url":"https://api.github.com/repos/aghinz2015/foram-3d/pulls{/number}","milestones_url":"https://api.github.com/repos/aghinz2015/foram-3d/milestones{/number}","notifications_url":"https://api.github.com/repos/aghinz2015/foram-3d/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aghinz2015/foram-3d/labels{/name}","releases_url":"https://api.github.com/repos/aghinz2015/foram-3d/releases{/id}","created_at":"2015-08-16T17:06:49Z","updated_at":"2015-08-16T17:06:55Z","pushed_at":"2015-11-29T19:28:27Z","git_url":"git://github.com/aghinz2015/foram-3d.git","ssh_url":"git@github.com:aghinz2015/foram-3d.git","clone_url":"https://github.com/aghinz2015/foram-3d.git","svn_url":"https://github.com/aghinz2015/foram-3d","homepage":null,"size":419,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aghinz2015/foram-3d/pulls/16"},"html":{"href":"https://github.com/aghinz2015/foram-3d/pull/16"},"issue":{"href":"https://api.github.com/repos/aghinz2015/foram-3d/issues/16"},"comments":{"href":"https://api.github.com/repos/aghinz2015/foram-3d/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/aghinz2015/foram-3d/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/aghinz2015/foram-3d/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aghinz2015/foram-3d/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/aghinz2015/foram-3d/statuses/4b7a62a4eb3de2cc634ad53bfb4e787cbcbeefde"}}}}