{"action":"created","issue":{"url":"https://api.github.com/repos/openseadragon/openseadragon/issues/790","labels_url":"https://api.github.com/repos/openseadragon/openseadragon/issues/790/labels{/name}","comments_url":"https://api.github.com/repos/openseadragon/openseadragon/issues/790/comments","events_url":"https://api.github.com/repos/openseadragon/openseadragon/issues/790/events","html_url":"https://github.com/openseadragon/openseadragon/pull/790","id":120982296,"number":790,"title":"Partial fix for drag release outside an iframe","user":{"login":"bazer","id":760713,"avatar_url":"https://avatars.githubusercontent.com/u/760713?v=3","gravatar_id":"","url":"https://api.github.com/users/bazer","html_url":"https://github.com/bazer","followers_url":"https://api.github.com/users/bazer/followers","following_url":"https://api.github.com/users/bazer/following{/other_user}","gists_url":"https://api.github.com/users/bazer/gists{/gist_id}","starred_url":"https://api.github.com/users/bazer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bazer/subscriptions","organizations_url":"https://api.github.com/users/bazer/orgs","repos_url":"https://api.github.com/users/bazer/repos","events_url":"https://api.github.com/users/bazer/events{/privacy}","received_events_url":"https://api.github.com/users/bazer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-08T10:50:47Z","updated_at":"2015-12-11T17:06:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openseadragon/openseadragon/pulls/790","html_url":"https://github.com/openseadragon/openseadragon/pull/790","diff_url":"https://github.com/openseadragon/openseadragon/pull/790.diff","patch_url":"https://github.com/openseadragon/openseadragon/pull/790.patch"},"body":"Hi!\r\n\r\nI think I've got at least a partial fix for issues #427 and #464. \r\n\r\nThis patch tries to detect if the viewer is inside an iframe and if the iframe has access rights to the containing window. In that case it listens to the mouseup and pointerup events from that window in addition to the the usual events. This works as long as the iframe and the containing page are on the same domain, otherwise it will act exactly as before.\r\n\r\nI'm not too familiar with how the OSD event model works so please check if I've broken something, but \r\nI've tested it in Chrome, Firefox, IE 8 and IE 11, all on Windows, and it seems to work as expected.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/openseadragon/openseadragon/issues/comments/163992306","html_url":"https://github.com/openseadragon/openseadragon/pull/790#issuecomment-163992306","issue_url":"https://api.github.com/repos/openseadragon/openseadragon/issues/790","id":163992306,"user":{"login":"mdcorriveau","id":9082852,"avatar_url":"https://avatars.githubusercontent.com/u/9082852?v=3","gravatar_id":"","url":"https://api.github.com/users/mdcorriveau","html_url":"https://github.com/mdcorriveau","followers_url":"https://api.github.com/users/mdcorriveau/followers","following_url":"https://api.github.com/users/mdcorriveau/following{/other_user}","gists_url":"https://api.github.com/users/mdcorriveau/gists{/gist_id}","starred_url":"https://api.github.com/users/mdcorriveau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdcorriveau/subscriptions","organizations_url":"https://api.github.com/users/mdcorriveau/orgs","repos_url":"https://api.github.com/users/mdcorriveau/repos","events_url":"https://api.github.com/users/mdcorriveau/events{/privacy}","received_events_url":"https://api.github.com/users/mdcorriveau/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T17:06:24Z","updated_at":"2015-12-11T17:06:24Z","body":"Works perfectly for me, thanks !"}}