{"action":"opened","number":116,"pull_request":{"url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/pulls/116","id":185607504,"html_url":"https://github.com/joshwnj/react-visibility-sensor/pull/116","diff_url":"https://github.com/joshwnj/react-visibility-sensor/pull/116.diff","patch_url":"https://github.com/joshwnj/react-visibility-sensor/pull/116.patch","issue_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/issues/116","number":116,"state":"open","locked":false,"title":"Fix bug: failed to detect visibility changes","user":{"login":"nguongphuc","id":8895731,"avatar_url":"https://avatars1.githubusercontent.com/u/8895731?v=4","gravatar_id":"","url":"https://api.github.com/users/nguongphuc","html_url":"https://github.com/nguongphuc","followers_url":"https://api.github.com/users/nguongphuc/followers","following_url":"https://api.github.com/users/nguongphuc/following{/other_user}","gists_url":"https://api.github.com/users/nguongphuc/gists{/gist_id}","starred_url":"https://api.github.com/users/nguongphuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguongphuc/subscriptions","organizations_url":"https://api.github.com/users/nguongphuc/orgs","repos_url":"https://api.github.com/users/nguongphuc/repos","events_url":"https://api.github.com/users/nguongphuc/events{/privacy}","received_events_url":"https://api.github.com/users/nguongphuc/received_events","type":"User","site_admin":false},"body":"Fix bug for edge cases where the plugin fails to detect visibility changes\r\n\r\n+ The viewport rectangle values are Integers, while the plugin's Element\r\nboundaries are Floats. In some edge cases, the boundaries will always be\r\noutside of the viewport.\r\n+ I rounded down the boundaries to fix the issue.","created_at":"2018-05-03T02:59:56Z","updated_at":"2018-05-03T02:59:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/pulls/116/commits","review_comments_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/pulls/116/comments","review_comment_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/issues/116/comments","statuses_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/statuses/9baa22cb4decee84ccb7696d55490cf2b5cca203","head":{"label":"nguongphuc:FIXBUG-Visibility-Edge-Case","ref":"FIXBUG-Visibility-Edge-Case","sha":"9baa22cb4decee84ccb7696d55490cf2b5cca203","user":{"login":"nguongphuc","id":8895731,"avatar_url":"https://avatars1.githubusercontent.com/u/8895731?v=4","gravatar_id":"","url":"https://api.github.com/users/nguongphuc","html_url":"https://github.com/nguongphuc","followers_url":"https://api.github.com/users/nguongphuc/followers","following_url":"https://api.github.com/users/nguongphuc/following{/other_user}","gists_url":"https://api.github.com/users/nguongphuc/gists{/gist_id}","starred_url":"https://api.github.com/users/nguongphuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguongphuc/subscriptions","organizations_url":"https://api.github.com/users/nguongphuc/orgs","repos_url":"https://api.github.com/users/nguongphuc/repos","events_url":"https://api.github.com/users/nguongphuc/events{/privacy}","received_events_url":"https://api.github.com/users/nguongphuc/received_events","type":"User","site_admin":false},"repo":{"id":131933369,"name":"react-visibility-sensor","full_name":"nguongphuc/react-visibility-sensor","owner":{"login":"nguongphuc","id":8895731,"avatar_url":"https://avatars1.githubusercontent.com/u/8895731?v=4","gravatar_id":"","url":"https://api.github.com/users/nguongphuc","html_url":"https://github.com/nguongphuc","followers_url":"https://api.github.com/users/nguongphuc/followers","following_url":"https://api.github.com/users/nguongphuc/following{/other_user}","gists_url":"https://api.github.com/users/nguongphuc/gists{/gist_id}","starred_url":"https://api.github.com/users/nguongphuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguongphuc/subscriptions","organizations_url":"https://api.github.com/users/nguongphuc/orgs","repos_url":"https://api.github.com/users/nguongphuc/repos","events_url":"https://api.github.com/users/nguongphuc/events{/privacy}","received_events_url":"https://api.github.com/users/nguongphuc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nguongphuc/react-visibility-sensor","description":"Sensor component for React that notifies you when it goes in or out of the window viewport.","fork":true,"url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor","forks_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/forks","keys_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/teams","hooks_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/hooks","issue_events_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/issues/events{/number}","events_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/events","assignees_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/assignees{/user}","branches_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/branches{/branch}","tags_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/tags","blobs_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/git/refs{/sha}","trees_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/statuses/{sha}","languages_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/languages","stargazers_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/stargazers","contributors_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/contributors","subscribers_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/subscribers","subscription_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/subscription","commits_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/commits{/sha}","git_commits_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/git/commits{/sha}","comments_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/comments{/number}","issue_comment_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/issues/comments{/number}","contents_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/contents/{+path}","compare_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/merges","archive_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/downloads","issues_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/issues{/number}","pulls_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/pulls{/number}","milestones_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/milestones{/number}","notifications_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/labels{/name}","releases_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/releases{/id}","deployments_url":"https://api.github.com/repos/nguongphuc/react-visibility-sensor/deployments","created_at":"2018-05-03T02:53:33Z","updated_at":"2018-05-03T02:53:36Z","pushed_at":"2018-05-03T02:58:52Z","git_url":"git://github.com/nguongphuc/react-visibility-sensor.git","ssh_url":"git@github.com:nguongphuc/react-visibility-sensor.git","clone_url":"https://github.com/nguongphuc/react-visibility-sensor.git","svn_url":"https://github.com/nguongphuc/react-visibility-sensor","homepage":null,"size":389,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"joshwnj:master","ref":"master","sha":"2d164aab67ac8191332be5d4a048af7822a592f6","user":{"login":"joshwnj","id":36711,"avatar_url":"https://avatars3.githubusercontent.com/u/36711?v=4","gravatar_id":"","url":"https://api.github.com/users/joshwnj","html_url":"https://github.com/joshwnj","followers_url":"https://api.github.com/users/joshwnj/followers","following_url":"https://api.github.com/users/joshwnj/following{/other_user}","gists_url":"https://api.github.com/users/joshwnj/gists{/gist_id}","starred_url":"https://api.github.com/users/joshwnj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshwnj/subscriptions","organizations_url":"https://api.github.com/users/joshwnj/orgs","repos_url":"https://api.github.com/users/joshwnj/repos","events_url":"https://api.github.com/users/joshwnj/events{/privacy}","received_events_url":"https://api.github.com/users/joshwnj/received_events","type":"User","site_admin":false},"repo":{"id":23820175,"name":"react-visibility-sensor","full_name":"joshwnj/react-visibility-sensor","owner":{"login":"joshwnj","id":36711,"avatar_url":"https://avatars3.githubusercontent.com/u/36711?v=4","gravatar_id":"","url":"https://api.github.com/users/joshwnj","html_url":"https://github.com/joshwnj","followers_url":"https://api.github.com/users/joshwnj/followers","following_url":"https://api.github.com/users/joshwnj/following{/other_user}","gists_url":"https://api.github.com/users/joshwnj/gists{/gist_id}","starred_url":"https://api.github.com/users/joshwnj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshwnj/subscriptions","organizations_url":"https://api.github.com/users/joshwnj/orgs","repos_url":"https://api.github.com/users/joshwnj/repos","events_url":"https://api.github.com/users/joshwnj/events{/privacy}","received_events_url":"https://api.github.com/users/joshwnj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joshwnj/react-visibility-sensor","description":"Sensor component for React that notifies you when it goes in or out of the window viewport.","fork":false,"url":"https://api.github.com/repos/joshwnj/react-visibility-sensor","forks_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/forks","keys_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/teams","hooks_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/hooks","issue_events_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/issues/events{/number}","events_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/events","assignees_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/assignees{/user}","branches_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/branches{/branch}","tags_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/tags","blobs_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/git/refs{/sha}","trees_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/statuses/{sha}","languages_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/languages","stargazers_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/stargazers","contributors_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/contributors","subscribers_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/subscribers","subscription_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/subscription","commits_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/commits{/sha}","git_commits_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/git/commits{/sha}","comments_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/comments{/number}","issue_comment_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/issues/comments{/number}","contents_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/contents/{+path}","compare_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/merges","archive_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/downloads","issues_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/issues{/number}","pulls_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/pulls{/number}","milestones_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/milestones{/number}","notifications_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/labels{/name}","releases_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/releases{/id}","deployments_url":"https://api.github.com/repos/joshwnj/react-visibility-sensor/deployments","created_at":"2014-09-09T05:08:14Z","updated_at":"2018-05-02T22:21:14Z","pushed_at":"2018-04-11T08:21:13Z","git_url":"git://github.com/joshwnj/react-visibility-sensor.git","ssh_url":"git@github.com:joshwnj/react-visibility-sensor.git","clone_url":"https://github.com/joshwnj/react-visibility-sensor.git","svn_url":"https://github.com/joshwnj/react-visibility-sensor","homepage":null,"size":389,"stargazers_count":845,"watchers_count":845,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":92,"mirror_url":null,"archived":false,"open_issues_count":46,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":92,"open_issues":46,"watchers":845,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/joshwnj/react-visibility-sensor/pulls/116"},"html":{"href":"https://github.com/joshwnj/react-visibility-sensor/pull/116"},"issue":{"href":"https://api.github.com/repos/joshwnj/react-visibility-sensor/issues/116"},"comments":{"href":"https://api.github.com/repos/joshwnj/react-visibility-sensor/issues/116/comments"},"review_comments":{"href":"https://api.github.com/repos/joshwnj/react-visibility-sensor/pulls/116/comments"},"review_comment":{"href":"https://api.github.com/repos/joshwnj/react-visibility-sensor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/joshwnj/react-visibility-sensor/pulls/116/commits"},"statuses":{"href":"https://api.github.com/repos/joshwnj/react-visibility-sensor/statuses/9baa22cb4decee84ccb7696d55490cf2b5cca203"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":10,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"nguongphuc"}}