{"action":"opened","issue":{"url":"https://api.github.com/repos/dimsemenov/PhotoSwipe/issues/830","labels_url":"https://api.github.com/repos/dimsemenov/PhotoSwipe/issues/830/labels{/name}","comments_url":"https://api.github.com/repos/dimsemenov/PhotoSwipe/issues/830/comments","events_url":"https://api.github.com/repos/dimsemenov/PhotoSwipe/issues/830/events","html_url":"https://github.com/dimsemenov/PhotoSwipe/issues/830","id":72826103,"number":830,"title":"Page scrolls when viewing image","user":{"login":"hendricks85","id":12222195,"avatar_url":"https://avatars.githubusercontent.com/u/12222195?v=3","gravatar_id":"","url":"https://api.github.com/users/hendricks85","html_url":"https://github.com/hendricks85","followers_url":"https://api.github.com/users/hendricks85/followers","following_url":"https://api.github.com/users/hendricks85/following{/other_user}","gists_url":"https://api.github.com/users/hendricks85/gists{/gist_id}","starred_url":"https://api.github.com/users/hendricks85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hendricks85/subscriptions","organizations_url":"https://api.github.com/users/hendricks85/orgs","repos_url":"https://api.github.com/users/hendricks85/repos","events_url":"https://api.github.com/users/hendricks85/events{/privacy}","received_events_url":"https://api.github.com/users/hendricks85/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-03T16:11:32Z","updated_at":"2015-05-03T16:11:32Z","closed_at":null,"body":"This appears to be a bug specific to Google Chrome.  I was not able to replicate it in Firefox or IE.  A scroll event is triggered after opening a second image without having scrolled since the first image was closed.\r\n\r\nSteps to reproduce:\r\n1) Go to http://photoswipe.com/\r\n2) Scroll down a little bit but keep images at top of page in view\r\n3) Click on any image (e.g. bear)\r\n4) Close photoswipe via the X at the top right\r\n5) Do not scroll page!\r\n6) Click on any image (e.g. sunset)\r\n7) On my laptop, you can see the scroll  bar has moved.  On my desktop, the scroll bar stays in the original position, but the result is the same in Step 9\r\n8) Close photoswipe via the X at the top right\r\n9) Note that the page has scrolled up to the top and then jumps down to the original scroll position. This effect is more pronounced when the images are placed further down on the page."}}