{"action":"created","comment":{"url":"https://api.github.com/repos/uxebu/james/pulls/comments/34021827","id":34021827,"diff_hunk":"@@ -15,32 +17,69 @@ export default class Requests extends React.Component {\n     });\n   }\n \n+  componentDidMount() {\n+    const requests = React.findDOMNode(this);\n+    requests.addEventListener('scroll', () => {\n+      const fromIndex = Math.ceil(requests.scrollTop / requestElementHeight) - 15;\n+      this._setFromIndex(fromIndex < 0 ? 0 : fromIndex);","path":"src/component/requests.js","position":null,"original_position":19,"commit_id":"31e073685c785de5708e0f53b3d89f2b8e2b2ff1","original_commit_id":"fc316f7afd414a0f4be087a66e15f7856360f298","user":{"login":"basecode","id":143527,"avatar_url":"https://avatars.githubusercontent.com/u/143527?v=3","gravatar_id":"","url":"https://api.github.com/users/basecode","html_url":"https://github.com/basecode","followers_url":"https://api.github.com/users/basecode/followers","following_url":"https://api.github.com/users/basecode/following{/other_user}","gists_url":"https://api.github.com/users/basecode/gists{/gist_id}","starred_url":"https://api.github.com/users/basecode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basecode/subscriptions","organizations_url":"https://api.github.com/users/basecode/orgs","repos_url":"https://api.github.com/users/basecode/repos","events_url":"https://api.github.com/users/basecode/events{/privacy}","received_events_url":"https://api.github.com/users/basecode/received_events","type":"User","site_admin":false},"body":"Nit: Would rename to `_onScroll` or just get rid of `_setFromIndex` completely.","created_at":"2015-07-07T09:23:36Z","updated_at":"2015-07-07T09:23:36Z","html_url":"https://github.com/uxebu/james/pull/10#discussion_r34021827","pull_request_url":"https://api.github.com/repos/uxebu/james/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/uxebu/james/pulls/comments/34021827"},"html":{"href":"https://github.com/uxebu/james/pull/10#discussion_r34021827"},"pull_request":{"href":"https://api.github.com/repos/uxebu/james/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/uxebu/james/pulls/10","id":39189574,"html_url":"https://github.com/uxebu/james/pull/10","diff_url":"https://github.com/uxebu/james/pull/10.diff","patch_url":"https://github.com/uxebu/james/pull/10.patch","issue_url":"https://api.github.com/repos/uxebu/james/issues/10","number":10,"state":"open","locked":false,"title":"Scrolling performance","user":{"login":"nerdbeere","id":423218,"avatar_url":"https://avatars.githubusercontent.com/u/423218?v=3","gravatar_id":"","url":"https://api.github.com/users/nerdbeere","html_url":"https://github.com/nerdbeere","followers_url":"https://api.github.com/users/nerdbeere/followers","following_url":"https://api.github.com/users/nerdbeere/following{/other_user}","gists_url":"https://api.github.com/users/nerdbeere/gists{/gist_id}","starred_url":"https://api.github.com/users/nerdbeere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nerdbeere/subscriptions","organizations_url":"https://api.github.com/users/nerdbeere/orgs","repos_url":"https://api.github.com/users/nerdbeere/repos","events_url":"https://api.github.com/users/nerdbeere/events{/privacy}","received_events_url":"https://api.github.com/users/nerdbeere/received_events","type":"User","site_admin":false},"body":"This PR fixes #3 ","created_at":"2015-07-03T17:27:54Z","updated_at":"2015-07-07T09:23:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"79503b80ace40e01f84d2aa908187b4cb56c78e1","assignee":{"login":"basecode","id":143527,"avatar_url":"https://avatars.githubusercontent.com/u/143527?v=3","gravatar_id":"","url":"https://api.github.com/users/basecode","html_url":"https://github.com/basecode","followers_url":"https://api.github.com/users/basecode/followers","following_url":"https://api.github.com/users/basecode/following{/other_user}","gists_url":"https://api.github.com/users/basecode/gists{/gist_id}","starred_url":"https://api.github.com/users/basecode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basecode/subscriptions","organizations_url":"https://api.github.com/users/basecode/orgs","repos_url":"https://api.github.com/users/basecode/repos","events_url":"https://api.github.com/users/basecode/events{/privacy}","received_events_url":"https://api.github.com/users/basecode/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/uxebu/james/pulls/10/commits","review_comments_url":"https://api.github.com/repos/uxebu/james/pulls/10/comments","review_comment_url":"https://api.github.com/repos/uxebu/james/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uxebu/james/issues/10/comments","statuses_url":"https://api.github.com/repos/uxebu/james/statuses/31e073685c785de5708e0f53b3d89f2b8e2b2ff1","head":{"label":"uxebu:scrolling-performance","ref":"scrolling-performance","sha":"31e073685c785de5708e0f53b3d89f2b8e2b2ff1","user":{"login":"uxebu","id":170897,"avatar_url":"https://avatars.githubusercontent.com/u/170897?v=3","gravatar_id":"","url":"https://api.github.com/users/uxebu","html_url":"https://github.com/uxebu","followers_url":"https://api.github.com/users/uxebu/followers","following_url":"https://api.github.com/users/uxebu/following{/other_user}","gists_url":"https://api.github.com/users/uxebu/gists{/gist_id}","starred_url":"https://api.github.com/users/uxebu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uxebu/subscriptions","organizations_url":"https://api.github.com/users/uxebu/orgs","repos_url":"https://api.github.com/users/uxebu/repos","events_url":"https://api.github.com/users/uxebu/events{/privacy}","received_events_url":"https://api.github.com/users/uxebu/received_events","type":"Organization","site_admin":false},"repo":{"id":38034368,"name":"james","full_name":"uxebu/james","owner":{"login":"uxebu","id":170897,"avatar_url":"https://avatars.githubusercontent.com/u/170897?v=3","gravatar_id":"","url":"https://api.github.com/users/uxebu","html_url":"https://github.com/uxebu","followers_url":"https://api.github.com/users/uxebu/followers","following_url":"https://api.github.com/users/uxebu/following{/other_user}","gists_url":"https://api.github.com/users/uxebu/gists{/gist_id}","starred_url":"https://api.github.com/users/uxebu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uxebu/subscriptions","organizations_url":"https://api.github.com/users/uxebu/orgs","repos_url":"https://api.github.com/users/uxebu/repos","events_url":"https://api.github.com/users/uxebu/events{/privacy}","received_events_url":"https://api.github.com/users/uxebu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uxebu/james","description":"Web Debugging Proxy Application","fork":false,"url":"https://api.github.com/repos/uxebu/james","forks_url":"https://api.github.com/repos/uxebu/james/forks","keys_url":"https://api.github.com/repos/uxebu/james/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uxebu/james/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uxebu/james/teams","hooks_url":"https://api.github.com/repos/uxebu/james/hooks","issue_events_url":"https://api.github.com/repos/uxebu/james/issues/events{/number}","events_url":"https://api.github.com/repos/uxebu/james/events","assignees_url":"https://api.github.com/repos/uxebu/james/assignees{/user}","branches_url":"https://api.github.com/repos/uxebu/james/branches{/branch}","tags_url":"https://api.github.com/repos/uxebu/james/tags","blobs_url":"https://api.github.com/repos/uxebu/james/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uxebu/james/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uxebu/james/git/refs{/sha}","trees_url":"https://api.github.com/repos/uxebu/james/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uxebu/james/statuses/{sha}","languages_url":"https://api.github.com/repos/uxebu/james/languages","stargazers_url":"https://api.github.com/repos/uxebu/james/stargazers","contributors_url":"https://api.github.com/repos/uxebu/james/contributors","subscribers_url":"https://api.github.com/repos/uxebu/james/subscribers","subscription_url":"https://api.github.com/repos/uxebu/james/subscription","commits_url":"https://api.github.com/repos/uxebu/james/commits{/sha}","git_commits_url":"https://api.github.com/repos/uxebu/james/git/commits{/sha}","comments_url":"https://api.github.com/repos/uxebu/james/comments{/number}","issue_comment_url":"https://api.github.com/repos/uxebu/james/issues/comments{/number}","contents_url":"https://api.github.com/repos/uxebu/james/contents/{+path}","compare_url":"https://api.github.com/repos/uxebu/james/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uxebu/james/merges","archive_url":"https://api.github.com/repos/uxebu/james/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uxebu/james/downloads","issues_url":"https://api.github.com/repos/uxebu/james/issues{/number}","pulls_url":"https://api.github.com/repos/uxebu/james/pulls{/number}","milestones_url":"https://api.github.com/repos/uxebu/james/milestones{/number}","notifications_url":"https://api.github.com/repos/uxebu/james/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uxebu/james/labels{/name}","releases_url":"https://api.github.com/repos/uxebu/james/releases{/id}","created_at":"2015-06-25T07:20:34Z","updated_at":"2015-07-03T13:57:50Z","pushed_at":"2015-07-07T08:54:25Z","git_url":"git://github.com/uxebu/james.git","ssh_url":"git@github.com:uxebu/james.git","clone_url":"https://github.com/uxebu/james.git","svn_url":"https://github.com/uxebu/james","homepage":"","size":627,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":8,"default_branch":"master"}},"base":{"label":"uxebu:master","ref":"master","sha":"46f87465c9384c0be05db6e85abb2356f163bdea","user":{"login":"uxebu","id":170897,"avatar_url":"https://avatars.githubusercontent.com/u/170897?v=3","gravatar_id":"","url":"https://api.github.com/users/uxebu","html_url":"https://github.com/uxebu","followers_url":"https://api.github.com/users/uxebu/followers","following_url":"https://api.github.com/users/uxebu/following{/other_user}","gists_url":"https://api.github.com/users/uxebu/gists{/gist_id}","starred_url":"https://api.github.com/users/uxebu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uxebu/subscriptions","organizations_url":"https://api.github.com/users/uxebu/orgs","repos_url":"https://api.github.com/users/uxebu/repos","events_url":"https://api.github.com/users/uxebu/events{/privacy}","received_events_url":"https://api.github.com/users/uxebu/received_events","type":"Organization","site_admin":false},"repo":{"id":38034368,"name":"james","full_name":"uxebu/james","owner":{"login":"uxebu","id":170897,"avatar_url":"https://avatars.githubusercontent.com/u/170897?v=3","gravatar_id":"","url":"https://api.github.com/users/uxebu","html_url":"https://github.com/uxebu","followers_url":"https://api.github.com/users/uxebu/followers","following_url":"https://api.github.com/users/uxebu/following{/other_user}","gists_url":"https://api.github.com/users/uxebu/gists{/gist_id}","starred_url":"https://api.github.com/users/uxebu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uxebu/subscriptions","organizations_url":"https://api.github.com/users/uxebu/orgs","repos_url":"https://api.github.com/users/uxebu/repos","events_url":"https://api.github.com/users/uxebu/events{/privacy}","received_events_url":"https://api.github.com/users/uxebu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uxebu/james","description":"Web Debugging Proxy Application","fork":false,"url":"https://api.github.com/repos/uxebu/james","forks_url":"https://api.github.com/repos/uxebu/james/forks","keys_url":"https://api.github.com/repos/uxebu/james/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uxebu/james/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uxebu/james/teams","hooks_url":"https://api.github.com/repos/uxebu/james/hooks","issue_events_url":"https://api.github.com/repos/uxebu/james/issues/events{/number}","events_url":"https://api.github.com/repos/uxebu/james/events","assignees_url":"https://api.github.com/repos/uxebu/james/assignees{/user}","branches_url":"https://api.github.com/repos/uxebu/james/branches{/branch}","tags_url":"https://api.github.com/repos/uxebu/james/tags","blobs_url":"https://api.github.com/repos/uxebu/james/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uxebu/james/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uxebu/james/git/refs{/sha}","trees_url":"https://api.github.com/repos/uxebu/james/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uxebu/james/statuses/{sha}","languages_url":"https://api.github.com/repos/uxebu/james/languages","stargazers_url":"https://api.github.com/repos/uxebu/james/stargazers","contributors_url":"https://api.github.com/repos/uxebu/james/contributors","subscribers_url":"https://api.github.com/repos/uxebu/james/subscribers","subscription_url":"https://api.github.com/repos/uxebu/james/subscription","commits_url":"https://api.github.com/repos/uxebu/james/commits{/sha}","git_commits_url":"https://api.github.com/repos/uxebu/james/git/commits{/sha}","comments_url":"https://api.github.com/repos/uxebu/james/comments{/number}","issue_comment_url":"https://api.github.com/repos/uxebu/james/issues/comments{/number}","contents_url":"https://api.github.com/repos/uxebu/james/contents/{+path}","compare_url":"https://api.github.com/repos/uxebu/james/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uxebu/james/merges","archive_url":"https://api.github.com/repos/uxebu/james/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uxebu/james/downloads","issues_url":"https://api.github.com/repos/uxebu/james/issues{/number}","pulls_url":"https://api.github.com/repos/uxebu/james/pulls{/number}","milestones_url":"https://api.github.com/repos/uxebu/james/milestones{/number}","notifications_url":"https://api.github.com/repos/uxebu/james/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uxebu/james/labels{/name}","releases_url":"https://api.github.com/repos/uxebu/james/releases{/id}","created_at":"2015-06-25T07:20:34Z","updated_at":"2015-07-03T13:57:50Z","pushed_at":"2015-07-07T08:54:25Z","git_url":"git://github.com/uxebu/james.git","ssh_url":"git@github.com:uxebu/james.git","clone_url":"https://github.com/uxebu/james.git","svn_url":"https://github.com/uxebu/james","homepage":"","size":627,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/uxebu/james/pulls/10"},"html":{"href":"https://github.com/uxebu/james/pull/10"},"issue":{"href":"https://api.github.com/repos/uxebu/james/issues/10"},"comments":{"href":"https://api.github.com/repos/uxebu/james/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/uxebu/james/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/uxebu/james/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uxebu/james/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/uxebu/james/statuses/31e073685c785de5708e0f53b3d89f2b8e2b2ff1"}}}}