{"action":"opened","number":47,"pull_request":{"url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/pulls/47","id":175330853,"html_url":"https://github.com/clauderic/react-tiny-virtual-list/pull/47","diff_url":"https://github.com/clauderic/react-tiny-virtual-list/pull/47.diff","patch_url":"https://github.com/clauderic/react-tiny-virtual-list/pull/47.patch","issue_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/issues/47","number":47,"state":"open","locked":false,"title":"Use passive event listener and add support for debouncing onScroll","user":{"login":"bjoerge","id":876086,"avatar_url":"https://avatars0.githubusercontent.com/u/876086?v=4","gravatar_id":"","url":"https://api.github.com/users/bjoerge","html_url":"https://github.com/bjoerge","followers_url":"https://api.github.com/users/bjoerge/followers","following_url":"https://api.github.com/users/bjoerge/following{/other_user}","gists_url":"https://api.github.com/users/bjoerge/gists{/gist_id}","starred_url":"https://api.github.com/users/bjoerge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjoerge/subscriptions","organizations_url":"https://api.github.com/users/bjoerge/orgs","repos_url":"https://api.github.com/users/bjoerge/repos","events_url":"https://api.github.com/users/bjoerge/events{/privacy}","received_events_url":"https://api.github.com/users/bjoerge/received_events","type":"User","site_admin":false},"body":"This adds a couple of workarounds for the performance drops described in #45 by using passive event listeners and adding support for (optionally) debouncing the scroll event handler.\r\n\r\n*Note*: This is strictly speaking a breaking change, since onScroll is now called with a native event instead of `React.UIEvent<HTMLDivElement>` as second parameter.\r\n\r\n*Note 2*: Had to upgrade TypeScript to get typings for third parameter to `addEventListener`\r\n\r\n*Note 3*: This adds the `debounce` package as dependency, so it's technically not _zero_ dependency anymore (debounce is ~500b minified & gzipped, btw.)","created_at":"2018-03-15T17:51:25Z","updated_at":"2018-03-15T17:51:25Z","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/clauderic/react-tiny-virtual-list/pulls/47/commits","review_comments_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/pulls/47/comments","review_comment_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/pulls/comments{/number}","comments_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/issues/47/comments","statuses_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/statuses/ef8a6b1a7b394c40b8a875dad6b159b664183119","head":{"label":"bjoerge:debounce-and-passive-event-listener","ref":"debounce-and-passive-event-listener","sha":"ef8a6b1a7b394c40b8a875dad6b159b664183119","user":{"login":"bjoerge","id":876086,"avatar_url":"https://avatars0.githubusercontent.com/u/876086?v=4","gravatar_id":"","url":"https://api.github.com/users/bjoerge","html_url":"https://github.com/bjoerge","followers_url":"https://api.github.com/users/bjoerge/followers","following_url":"https://api.github.com/users/bjoerge/following{/other_user}","gists_url":"https://api.github.com/users/bjoerge/gists{/gist_id}","starred_url":"https://api.github.com/users/bjoerge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjoerge/subscriptions","organizations_url":"https://api.github.com/users/bjoerge/orgs","repos_url":"https://api.github.com/users/bjoerge/repos","events_url":"https://api.github.com/users/bjoerge/events{/privacy}","received_events_url":"https://api.github.com/users/bjoerge/received_events","type":"User","site_admin":false},"repo":{"id":125403820,"name":"react-tiny-virtual-list","full_name":"bjoerge/react-tiny-virtual-list","owner":{"login":"bjoerge","id":876086,"avatar_url":"https://avatars0.githubusercontent.com/u/876086?v=4","gravatar_id":"","url":"https://api.github.com/users/bjoerge","html_url":"https://github.com/bjoerge","followers_url":"https://api.github.com/users/bjoerge/followers","following_url":"https://api.github.com/users/bjoerge/following{/other_user}","gists_url":"https://api.github.com/users/bjoerge/gists{/gist_id}","starred_url":"https://api.github.com/users/bjoerge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjoerge/subscriptions","organizations_url":"https://api.github.com/users/bjoerge/orgs","repos_url":"https://api.github.com/users/bjoerge/repos","events_url":"https://api.github.com/users/bjoerge/events{/privacy}","received_events_url":"https://api.github.com/users/bjoerge/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bjoerge/react-tiny-virtual-list","description":"A tiny but mighty 3kb list virtualization library, with zero dependencies 💪 Supports variable heights/widths, scrolling to index, and more!","fork":true,"url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list","forks_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/forks","keys_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/teams","hooks_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/hooks","issue_events_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/issues/events{/number}","events_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/events","assignees_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/assignees{/user}","branches_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/branches{/branch}","tags_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/tags","blobs_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/git/refs{/sha}","trees_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/statuses/{sha}","languages_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/languages","stargazers_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/stargazers","contributors_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/contributors","subscribers_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/subscribers","subscription_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/subscription","commits_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/commits{/sha}","git_commits_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/git/commits{/sha}","comments_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/comments{/number}","issue_comment_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/issues/comments{/number}","contents_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/contents/{+path}","compare_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/merges","archive_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/downloads","issues_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/issues{/number}","pulls_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/pulls{/number}","milestones_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/milestones{/number}","notifications_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/labels{/name}","releases_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/releases{/id}","deployments_url":"https://api.github.com/repos/bjoerge/react-tiny-virtual-list/deployments","created_at":"2018-03-15T17:33:12Z","updated_at":"2018-03-15T17:33:14Z","pushed_at":"2018-03-15T17:42:41Z","git_url":"git://github.com/bjoerge/react-tiny-virtual-list.git","ssh_url":"git@github.com:bjoerge/react-tiny-virtual-list.git","clone_url":"https://github.com/bjoerge/react-tiny-virtual-list.git","svn_url":"https://github.com/bjoerge/react-tiny-virtual-list","homepage":"https://clauderic.github.io/react-tiny-virtual-list/","size":591,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":"clauderic:master","ref":"master","sha":"d599923ab4454a9a0f978e827248027766c93d70","user":{"login":"clauderic","id":1416436,"avatar_url":"https://avatars0.githubusercontent.com/u/1416436?v=4","gravatar_id":"","url":"https://api.github.com/users/clauderic","html_url":"https://github.com/clauderic","followers_url":"https://api.github.com/users/clauderic/followers","following_url":"https://api.github.com/users/clauderic/following{/other_user}","gists_url":"https://api.github.com/users/clauderic/gists{/gist_id}","starred_url":"https://api.github.com/users/clauderic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clauderic/subscriptions","organizations_url":"https://api.github.com/users/clauderic/orgs","repos_url":"https://api.github.com/users/clauderic/repos","events_url":"https://api.github.com/users/clauderic/events{/privacy}","received_events_url":"https://api.github.com/users/clauderic/received_events","type":"User","site_admin":false},"repo":{"id":83269095,"name":"react-tiny-virtual-list","full_name":"clauderic/react-tiny-virtual-list","owner":{"login":"clauderic","id":1416436,"avatar_url":"https://avatars0.githubusercontent.com/u/1416436?v=4","gravatar_id":"","url":"https://api.github.com/users/clauderic","html_url":"https://github.com/clauderic","followers_url":"https://api.github.com/users/clauderic/followers","following_url":"https://api.github.com/users/clauderic/following{/other_user}","gists_url":"https://api.github.com/users/clauderic/gists{/gist_id}","starred_url":"https://api.github.com/users/clauderic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clauderic/subscriptions","organizations_url":"https://api.github.com/users/clauderic/orgs","repos_url":"https://api.github.com/users/clauderic/repos","events_url":"https://api.github.com/users/clauderic/events{/privacy}","received_events_url":"https://api.github.com/users/clauderic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/clauderic/react-tiny-virtual-list","description":"A tiny but mighty 3kb list virtualization library, with zero dependencies 💪 Supports variable heights/widths, scrolling to index, and more!","fork":false,"url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list","forks_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/forks","keys_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/teams","hooks_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/hooks","issue_events_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/issues/events{/number}","events_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/events","assignees_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/assignees{/user}","branches_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/branches{/branch}","tags_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/tags","blobs_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/git/refs{/sha}","trees_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/statuses/{sha}","languages_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/languages","stargazers_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/stargazers","contributors_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/contributors","subscribers_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/subscribers","subscription_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/subscription","commits_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/commits{/sha}","git_commits_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/git/commits{/sha}","comments_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/comments{/number}","issue_comment_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/issues/comments{/number}","contents_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/contents/{+path}","compare_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/merges","archive_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/downloads","issues_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/issues{/number}","pulls_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/pulls{/number}","milestones_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/milestones{/number}","notifications_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/labels{/name}","releases_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/releases{/id}","deployments_url":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/deployments","created_at":"2017-02-27T04:46:57Z","updated_at":"2018-03-15T15:47:26Z","pushed_at":"2018-03-06T15:21:50Z","git_url":"git://github.com/clauderic/react-tiny-virtual-list.git","ssh_url":"git@github.com:clauderic/react-tiny-virtual-list.git","clone_url":"https://github.com/clauderic/react-tiny-virtual-list.git","svn_url":"https://github.com/clauderic/react-tiny-virtual-list","homepage":"https://clauderic.github.io/react-tiny-virtual-list/","size":591,"stargazers_count":718,"watchers_count":718,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":42,"mirror_url":null,"archived":false,"open_issues_count":14,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":42,"open_issues":14,"watchers":718,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/pulls/47"},"html":{"href":"https://github.com/clauderic/react-tiny-virtual-list/pull/47"},"issue":{"href":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/issues/47"},"comments":{"href":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/clauderic/react-tiny-virtual-list/statuses/ef8a6b1a7b394c40b8a875dad6b159b664183119"}},"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":88,"deletions":52,"changed_files":4}}
{"actor":{"display_login":"bjoerge"}}