{"action":"created","issue":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/2456","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/2456/labels{/name}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/2456/comments","events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/2456/events","html_url":"https://github.com/CenterForOpenScience/osf.io/issues/2456","id":68101088,"number":2456,"title":"[Staging & Production] [SHARE] Clicking 'More' and scrolling to top causes navbar to jump","user":{"login":"nicipfeiffer","id":9381062,"avatar_url":"https://avatars.githubusercontent.com/u/9381062?v=3","gravatar_id":"","url":"https://api.github.com/users/nicipfeiffer","html_url":"https://github.com/nicipfeiffer","followers_url":"https://api.github.com/users/nicipfeiffer/followers","following_url":"https://api.github.com/users/nicipfeiffer/following{/other_user}","gists_url":"https://api.github.com/users/nicipfeiffer/gists{/gist_id}","starred_url":"https://api.github.com/users/nicipfeiffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicipfeiffer/subscriptions","organizations_url":"https://api.github.com/users/nicipfeiffer/orgs","repos_url":"https://api.github.com/users/nicipfeiffer/repos","events_url":"https://api.github.com/users/nicipfeiffer/events{/privacy}","received_events_url":"https://api.github.com/users/nicipfeiffer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/labels/2%20-%20Ready","name":"2 - Ready","color":"CCCCCC"},{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/labels/Bug:%20Production","name":"Bug: Production","color":"e11d21"},{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/labels/Priority%20-%20High","name":"Priority - High","color":"FF810F"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-13T13:45:33Z","updated_at":"2015-04-19T14:52:48Z","closed_at":null,"body":"## Steps\r\n1. Go to https://osf.io/share/?\r\n2. Type in a search that returns a lot of results, can enter \"*\" to get all results\r\n3. Scroll to the bottom and click on 'More'\r\n4. Repeat step 3 a few times, without scrolling to top\r\n5. Scroll to the top quickly (pay attention to the navbar)\r\n\r\n## Expected\r\nThat scrolling to the top with many results on the page would have no errors on the page\r\n\r\n## Actual\r\nWhen scrolling up to the top quickly with many results on the page, the navbar jumps around.\r\n\r\n\r\n![navbarjump](https://cloud.githubusercontent.com/assets/5975444/7116721/b8fe8fac-e1c1-11e4-9b6d-5f3005d7a950.gif)\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/comments/94284561","html_url":"https://github.com/CenterForOpenScience/osf.io/issues/2456#issuecomment-94284561","issue_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/2456","id":94284561,"user":{"login":"caneruguz","id":1314003,"avatar_url":"https://avatars.githubusercontent.com/u/1314003?v=3","gravatar_id":"","url":"https://api.github.com/users/caneruguz","html_url":"https://github.com/caneruguz","followers_url":"https://api.github.com/users/caneruguz/followers","following_url":"https://api.github.com/users/caneruguz/following{/other_user}","gists_url":"https://api.github.com/users/caneruguz/gists{/gist_id}","starred_url":"https://api.github.com/users/caneruguz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caneruguz/subscriptions","organizations_url":"https://api.github.com/users/caneruguz/orgs","repos_url":"https://api.github.com/users/caneruguz/repos","events_url":"https://api.github.com/users/caneruguz/events{/privacy}","received_events_url":"https://api.github.com/users/caneruguz/received_events","type":"User","site_admin":false},"created_at":"2015-04-19T14:52:48Z","updated_at":"2015-04-19T14:52:48Z","body":"I tried to replicate it too and it seems like when a lot of content is on the page it does lag. \r\n\r\nMy best guess is that as the element size in the page increases (with the number of items) the scroll height increases so a fast scroll needs a very quick repainting which depending on the machine the browser might not be able to catch up with. This is just a guess though. The chart below does show that the scrolling at the end is causing a lot of repaint (the green part). \r\n\r\n![screen shot 2015-04-19 at 10 44 04 am](https://cloud.githubusercontent.com/assets/1314003/7219853/168484a0-e682-11e4-8a3b-1f1cda22712a.png)\r\n\r\nSo I would say working on this would be a small optimization that would take time so maybe we should defer it. \r\n\r\n\r\n"}}