{"action":"created","issue":{"url":"https://api.github.com/repos/francoischalifour/medium-zoom/issues/27","repository_url":"https://api.github.com/repos/francoischalifour/medium-zoom","labels_url":"https://api.github.com/repos/francoischalifour/medium-zoom/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/francoischalifour/medium-zoom/issues/27/comments","events_url":"https://api.github.com/repos/francoischalifour/medium-zoom/issues/27/events","html_url":"https://github.com/francoischalifour/medium-zoom/issues/27","id":271190912,"number":27,"title":"Medium zoom not using data-zoom-target for images with srcset","user":{"login":"ismay","id":7355199,"avatar_url":"https://avatars1.githubusercontent.com/u/7355199?v=4","gravatar_id":"","url":"https://api.github.com/users/ismay","html_url":"https://github.com/ismay","followers_url":"https://api.github.com/users/ismay/followers","following_url":"https://api.github.com/users/ismay/following{/other_user}","gists_url":"https://api.github.com/users/ismay/gists{/gist_id}","starred_url":"https://api.github.com/users/ismay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ismay/subscriptions","organizations_url":"https://api.github.com/users/ismay/orgs","repos_url":"https://api.github.com/users/ismay/repos","events_url":"https://api.github.com/users/ismay/events{/privacy}","received_events_url":"https://api.github.com/users/ismay/received_events","type":"User","site_admin":false},"labels":[{"id":414628281,"url":"https://api.github.com/repos/francoischalifour/medium-zoom/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-11-04T13:08:21Z","updated_at":"2017-11-28T04:15:50Z","closed_at":null,"author_association":"NONE","body":"I'm using medium-zoom on some responsive images (with srcset), and I'm running into some weird behaviour. I'm using a script to calculate the most appropriate image size for the clients viewport, and I set that as the `data-zoom-target` attribute.\r\n\r\nBut when zooming it seems to be zooming to the wrong size (as instead of enlarging to fill the viewport, the image shrinks). I'm not sure what exactly's going wrong. Is this a bug, or am I doing something wrong here?\r\n\r\nPR implementing the above: https://github.com/ismay/ismaywolff.nl/pull/718\r\nLive url demonstrating the above: https://deploy-preview-718--ismaywolff.netlify.com/work/mould\r\n\r\nUnzoomed:\r\n\r\n<img width=\"1280\" alt=\"screen shot 2017-11-04 at 14 05 15\" src=\"https://user-images.githubusercontent.com/7355199/32405621-3a035f36-c169-11e7-8762-8282f049b16c.png\">\r\n\r\nZoomed:\r\n\r\n<img width=\"1280\" alt=\"screen shot 2017-11-04 at 14 05 19\" src=\"https://user-images.githubusercontent.com/7355199/32405622-3a1dbd86-c169-11e7-8bdd-ae232aa89fb7.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/francoischalifour/medium-zoom/issues/comments/347408700","html_url":"https://github.com/francoischalifour/medium-zoom/issues/27#issuecomment-347408700","issue_url":"https://api.github.com/repos/francoischalifour/medium-zoom/issues/27","id":347408700,"user":{"login":"dennisfrank","id":65968,"avatar_url":"https://avatars3.githubusercontent.com/u/65968?v=4","gravatar_id":"","url":"https://api.github.com/users/dennisfrank","html_url":"https://github.com/dennisfrank","followers_url":"https://api.github.com/users/dennisfrank/followers","following_url":"https://api.github.com/users/dennisfrank/following{/other_user}","gists_url":"https://api.github.com/users/dennisfrank/gists{/gist_id}","starred_url":"https://api.github.com/users/dennisfrank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dennisfrank/subscriptions","organizations_url":"https://api.github.com/users/dennisfrank/orgs","repos_url":"https://api.github.com/users/dennisfrank/repos","events_url":"https://api.github.com/users/dennisfrank/events{/privacy}","received_events_url":"https://api.github.com/users/dennisfrank/received_events","type":"User","site_admin":false},"created_at":"2017-11-28T04:15:50Z","updated_at":"2017-11-28T04:15:50Z","author_association":"NONE","body":"Hi guys. I would love to see a medium-zoom version that works with responsive images and `data-zoom-target`! :)"}}
{"actor":{"display_login":"dennisfrank"}}