{"action":"created","issue":{"url":"https://api.github.com/repos/openseadragon/openseadragon/issues/1550","repository_url":"https://api.github.com/repos/openseadragon/openseadragon","labels_url":"https://api.github.com/repos/openseadragon/openseadragon/issues/1550/labels{/name}","comments_url":"https://api.github.com/repos/openseadragon/openseadragon/issues/1550/comments","events_url":"https://api.github.com/repos/openseadragon/openseadragon/issues/1550/events","html_url":"https://github.com/openseadragon/openseadragon/issues/1550","id":371663257,"node_id":"MDU6SXNzdWUzNzE2NjMyNTc=","number":1550,"title":"When OSD returns from full page, Microsoft Edge/IE scroll up to the top of the page","user":{"login":"YorkshireChemist","id":10198145,"node_id":"MDQ6VXNlcjEwMTk4MTQ1","avatar_url":"https://avatars1.githubusercontent.com/u/10198145?v=4","gravatar_id":"","url":"https://api.github.com/users/YorkshireChemist","html_url":"https://github.com/YorkshireChemist","followers_url":"https://api.github.com/users/YorkshireChemist/followers","following_url":"https://api.github.com/users/YorkshireChemist/following{/other_user}","gists_url":"https://api.github.com/users/YorkshireChemist/gists{/gist_id}","starred_url":"https://api.github.com/users/YorkshireChemist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YorkshireChemist/subscriptions","organizations_url":"https://api.github.com/users/YorkshireChemist/orgs","repos_url":"https://api.github.com/users/YorkshireChemist/repos","events_url":"https://api.github.com/users/YorkshireChemist/events{/privacy}","received_events_url":"https://api.github.com/users/YorkshireChemist/received_events","type":"User","site_admin":false},"labels":[{"id":26854973,"node_id":"MDU6TGFiZWwyNjg1NDk3Mw==","url":"https://api.github.com/repos/openseadragon/openseadragon/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-18T18:51:04Z","updated_at":"2018-10-19T16:21:05Z","closed_at":null,"author_association":"NONE","body":"When openseadragon returns from full page view in Chrome/Firefox etc, it shows the same position on the parent web page that full page was entered from. In Edge/IE, it scrolls up to the top of the web page, so the user has to scroll down to see the openseadragon image again. Simple html file demonstrating this is at http://chechik.co.uk/tmp.html or pasted below (the red circles are there just to push openseadragon image to the bottom of a long page):\r\n```\r\n<!DOCTYPE html>\r\n<html>\r\n  <head>\r\n\t<script src=\"http://openseadragon.github.io/openseadragon/openseadragon.min.js\"></script>\r\n    <style>\r\n      #container {width: 70%}\r\n      #map {height: 300px}\r\n      #openseadragon {height: 500px}\r\n    </style>\r\n  </head>\r\n  <body>\r\n    <div id=\"container\">\r\n        <p>Some text</p>\r\n        <svg height=\"500\" width=\"500\">\r\n          <circle cx=\"250\" cy=\"250\" r=\"240\" stroke=\"black\" stroke-width=\"3\" fill=\"red\" />\r\n        </svg>\r\n    \t<p>Big red circle</p>\r\n    \t<div id=\"openseadragon\"></div>\r\n    \t<script>\r\n    \t    var viewer = OpenSeadragon({\r\n    \t\t\tid: \"openseadragon\",\r\n    \t\t\tprefixUrl: \"http://openseadragon.github.io/openseadragon/images/\",\r\n    \t\t\ttileSources: \"http://openseadragon.github.io/example-images/duomo/duomo.dzi\",\r\n    \t    })\r\n    \t </script>\r\n    \t<p>Some text at the end</p>\r\n    </div>\r\n  </body>\r\n</html>\r\n```"},"comment":{"url":"https://api.github.com/repos/openseadragon/openseadragon/issues/comments/431418918","html_url":"https://github.com/openseadragon/openseadragon/issues/1550#issuecomment-431418918","issue_url":"https://api.github.com/repos/openseadragon/openseadragon/issues/1550","id":431418918,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTQxODkxOA==","user":{"login":"iangilman","id":338989,"node_id":"MDQ6VXNlcjMzODk4OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/338989?v=4","gravatar_id":"","url":"https://api.github.com/users/iangilman","html_url":"https://github.com/iangilman","followers_url":"https://api.github.com/users/iangilman/followers","following_url":"https://api.github.com/users/iangilman/following{/other_user}","gists_url":"https://api.github.com/users/iangilman/gists{/gist_id}","starred_url":"https://api.github.com/users/iangilman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iangilman/subscriptions","organizations_url":"https://api.github.com/users/iangilman/orgs","repos_url":"https://api.github.com/users/iangilman/repos","events_url":"https://api.github.com/users/iangilman/events{/privacy}","received_events_url":"https://api.github.com/users/iangilman/received_events","type":"User","site_admin":false},"created_at":"2018-10-19T16:21:05Z","updated_at":"2018-10-19T16:21:05Z","author_association":"MEMBER","body":"Thank you for spotting this! \r\n\r\nIt looks like we cache the page scroll here before going into fullscreen: \r\n\r\nhttps://github.com/openseadragon/openseadragon/blob/master/src/viewer.js#L943\r\n\r\n... and try to restore it here:\r\n\r\nhttps://github.com/openseadragon/openseadragon/blob/master/src/viewer.js#L1070\r\n\r\nYou can see we try 10 times to successfully restore. Perhaps that's not enough on IE/Edge? It might be interesting to bump that number up and see what happens. It would probably also be good to look at `OpenSeadragon.getPageScroll` and `OpenSeadragon.setPageScroll` to make sure they are working properly on those browsers.\r\n\r\nWould you be up for taking a look at that?"}}
{"actor":{"display_login":"iangilman"}}