{"action":"created","issue":{"url":"https://api.github.com/repos/theia-ide/theia/issues/4390","repository_url":"https://api.github.com/repos/theia-ide/theia","labels_url":"https://api.github.com/repos/theia-ide/theia/issues/4390/labels{/name}","comments_url":"https://api.github.com/repos/theia-ide/theia/issues/4390/comments","events_url":"https://api.github.com/repos/theia-ide/theia/issues/4390/events","html_url":"https://github.com/theia-ide/theia/issues/4390","id":412542837,"node_id":"MDU6SXNzdWU0MTI1NDI4Mzc=","number":4390,"title":"Werid Scroll To Bottom behavior","user":{"login":"duemaster","id":8973687,"node_id":"MDQ6VXNlcjg5NzM2ODc=","avatar_url":"https://avatars1.githubusercontent.com/u/8973687?v=4","gravatar_id":"","url":"https://api.github.com/users/duemaster","html_url":"https://github.com/duemaster","followers_url":"https://api.github.com/users/duemaster/followers","following_url":"https://api.github.com/users/duemaster/following{/other_user}","gists_url":"https://api.github.com/users/duemaster/gists{/gist_id}","starred_url":"https://api.github.com/users/duemaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duemaster/subscriptions","organizations_url":"https://api.github.com/users/duemaster/orgs","repos_url":"https://api.github.com/users/duemaster/repos","events_url":"https://api.github.com/users/duemaster/events{/privacy}","received_events_url":"https://api.github.com/users/duemaster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2019-02-20T17:27:58Z","updated_at":"2019-02-23T13:19:43Z","closed_at":null,"author_association":"NONE","body":"I am using [react-scroll-to-bottom](https://www.npmjs.com/package/react-scroll-to-bottom) to enable auto scrolling of list items in a widget. The widget receives updates through events, which adds items to a list and auto scrolls down.\r\n\r\nHowever, I am noticing some werid scrolling behavior.\r\n\r\nThis is how I replicate it:\r\n1. Widget is in a collapsed state (Label shown, but widget is not open)\r\n2. Updates come in and widget adds new item to the list.\r\n3. User clicks open widget, scroll to bottom animation starts.\r\n\r\nThis feels werid as I would expect the widget to auto scroll down even if it was in the collapsed state.\r\n\r\nIs this because when in a collapsed state, the DOM element cannot be found so scrolling cannot work?"},"comment":{"url":"https://api.github.com/repos/theia-ide/theia/issues/comments/466648148","html_url":"https://github.com/theia-ide/theia/issues/4390#issuecomment-466648148","issue_url":"https://api.github.com/repos/theia-ide/theia/issues/4390","id":466648148,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2NjY0ODE0OA==","user":{"login":"vince-fugnitto","id":40359487,"node_id":"MDQ6VXNlcjQwMzU5NDg3","avatar_url":"https://avatars2.githubusercontent.com/u/40359487?v=4","gravatar_id":"","url":"https://api.github.com/users/vince-fugnitto","html_url":"https://github.com/vince-fugnitto","followers_url":"https://api.github.com/users/vince-fugnitto/followers","following_url":"https://api.github.com/users/vince-fugnitto/following{/other_user}","gists_url":"https://api.github.com/users/vince-fugnitto/gists{/gist_id}","starred_url":"https://api.github.com/users/vince-fugnitto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vince-fugnitto/subscriptions","organizations_url":"https://api.github.com/users/vince-fugnitto/orgs","repos_url":"https://api.github.com/users/vince-fugnitto/repos","events_url":"https://api.github.com/users/vince-fugnitto/events{/privacy}","received_events_url":"https://api.github.com/users/vince-fugnitto/received_events","type":"User","site_admin":false},"created_at":"2019-02-23T13:19:43Z","updated_at":"2019-02-23T13:19:43Z","author_association":"COLLABORATOR","body":"@duemaster that is certainly a possible hypothesis, perhaps it may be worthwhile to open an issue on the `react-scroll-to-bottom` GitHub page and ask for clarifications / help :) I believe it has to do with the viewport, since in both cases (widget hidden and a different tab) scrolling only reoccurs when the widget is back in the viewport."}}
{"actor":{"display_login":"vince-fugnitto"}}