{"action":"created","issue":{"url":"https://api.github.com/repos/mattermost/mattermost-webapp/issues/2079","repository_url":"https://api.github.com/repos/mattermost/mattermost-webapp","labels_url":"https://api.github.com/repos/mattermost/mattermost-webapp/issues/2079/labels{/name}","comments_url":"https://api.github.com/repos/mattermost/mattermost-webapp/issues/2079/comments","events_url":"https://api.github.com/repos/mattermost/mattermost-webapp/issues/2079/events","html_url":"https://github.com/mattermost/mattermost-webapp/pull/2079","id":384247461,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzNDkyOTYz","number":2079,"title":"MM-13180 Call load posts earlier for infinite scroll","user":{"login":"sudheerDev","id":4973621,"node_id":"MDQ6VXNlcjQ5NzM2MjE=","avatar_url":"https://avatars0.githubusercontent.com/u/4973621?v=4","gravatar_id":"","url":"https://api.github.com/users/sudheerDev","html_url":"https://github.com/sudheerDev","followers_url":"https://api.github.com/users/sudheerDev/followers","following_url":"https://api.github.com/users/sudheerDev/following{/other_user}","gists_url":"https://api.github.com/users/sudheerDev/gists{/gist_id}","starred_url":"https://api.github.com/users/sudheerDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudheerDev/subscriptions","organizations_url":"https://api.github.com/users/sudheerDev/orgs","repos_url":"https://api.github.com/users/sudheerDev/repos","events_url":"https://api.github.com/users/sudheerDev/events{/privacy}","received_events_url":"https://api.github.com/users/sudheerDev/received_events","type":"User","site_admin":false},"labels":[{"id":716189645,"node_id":"MDU6TGFiZWw3MTYxODk2NDU=","url":"https://api.github.com/repos/mattermost/mattermost-webapp/labels/Awaiting%20Submitter%20Action","name":"Awaiting Submitter Action","color":"b60205","default":false},{"id":702532842,"node_id":"MDU6TGFiZWw3MDI1MzI4NDI=","url":"https://api.github.com/repos/mattermost/mattermost-webapp/labels/Setup%20Test%20Server","name":"Setup Test Server","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-26T09:44:50Z","updated_at":"2018-12-20T11:49:49Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/mattermost/mattermost-webapp/pulls/2079","html_url":"https://github.com/mattermost/mattermost-webapp/pull/2079","diff_url":"https://github.com/mattermost/mattermost-webapp/pull/2079.diff","patch_url":"https://github.com/mattermost/mattermost-webapp/pull/2079.patch"},"body":"#### Summary\r\nLoads posts earlier than existing trigger.\r\n\r\nExisting trigger is at 40% of clientHeight(visible scroll area) so typically about `0.4 * 800(clientHeight)` i.e `200px `from the top of the postList. If there are `4000px` of posts in total at present we trigger to load posts when user reaches to `3800px` \r\n\r\nWith this PR we change this to load when scroll position is at 30% from the top. i.e if `4000px` we trigger to load posts at `3040px`.  i.e by `0.3 * (4000 - 800)` i.e `960px` \r\n\r\n\r\n#### Ticket Link\r\n[MM-13180](https://mattermost.atlassian.net/browse/MM-13180)\r\n#### Checklist\r\n[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]\r\n- [x] Ran `make check-style` to check for style errors (required for all pull requests)\r\n- [x] Ran `make test` to ensure unit and component tests passed\r\n- [x] Has UI changes\r\n"},"comment":{"url":"https://api.github.com/repos/mattermost/mattermost-webapp/issues/comments/448972227","html_url":"https://github.com/mattermost/mattermost-webapp/pull/2079#issuecomment-448972227","issue_url":"https://api.github.com/repos/mattermost/mattermost-webapp/issues/2079","id":448972227,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODk3MjIyNw==","user":{"login":"mattermod","id":16344077,"node_id":"MDQ6VXNlcjE2MzQ0MDc3","avatar_url":"https://avatars1.githubusercontent.com/u/16344077?v=4","gravatar_id":"","url":"https://api.github.com/users/mattermod","html_url":"https://github.com/mattermod","followers_url":"https://api.github.com/users/mattermod/followers","following_url":"https://api.github.com/users/mattermod/following{/other_user}","gists_url":"https://api.github.com/users/mattermod/gists{/gist_id}","starred_url":"https://api.github.com/users/mattermod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattermod/subscriptions","organizations_url":"https://api.github.com/users/mattermod/orgs","repos_url":"https://api.github.com/users/mattermod/repos","events_url":"https://api.github.com/users/mattermod/events{/privacy}","received_events_url":"https://api.github.com/users/mattermod/received_events","type":"User","site_admin":false},"created_at":"2018-12-20T11:49:49Z","updated_at":"2018-12-20T11:49:49Z","author_association":"NONE","body":"`Setup Test Server` label detected. Spinmint test server created if build succeeds (checks pass and no conflicts with base branch)."}}
{"actor":{"display_login":"mattermod"}}