{"action":"created","issue":{"url":"https://api.github.com/repos/timmywil/jquery.panzoom/issues/266","repository_url":"https://api.github.com/repos/timmywil/jquery.panzoom","labels_url":"https://api.github.com/repos/timmywil/jquery.panzoom/issues/266/labels{/name}","comments_url":"https://api.github.com/repos/timmywil/jquery.panzoom/issues/266/comments","events_url":"https://api.github.com/repos/timmywil/jquery.panzoom/issues/266/events","html_url":"https://github.com/timmywil/jquery.panzoom/issues/266","id":170469330,"number":266,"title":"Zoom: \"focal\" option doesn't work when \"$set\" was used on init","user":{"login":"isaaclyman","id":9139369,"avatar_url":"https://avatars.githubusercontent.com/u/9139369?v=3","gravatar_id":"","url":"https://api.github.com/users/isaaclyman","html_url":"https://github.com/isaaclyman","followers_url":"https://api.github.com/users/isaaclyman/followers","following_url":"https://api.github.com/users/isaaclyman/following{/other_user}","gists_url":"https://api.github.com/users/isaaclyman/gists{/gist_id}","starred_url":"https://api.github.com/users/isaaclyman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isaaclyman/subscriptions","organizations_url":"https://api.github.com/users/isaaclyman/orgs","repos_url":"https://api.github.com/users/isaaclyman/repos","events_url":"https://api.github.com/users/isaaclyman/events{/privacy}","received_events_url":"https://api.github.com/users/isaaclyman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-10T17:10:15Z","updated_at":"2016-08-10T17:37:35Z","closed_at":"2016-08-10T17:37:35Z","body":"### Subject\r\nWhen the \"$set\" option is used to initialize panzoom, specifically on a child of the main panzoom element, the \"focal\" option of the zoom command malfunctions--the focal point is not frozen, and the zoom takes a parabolic shape on the Z-axis.\r\n\r\n### Environment\r\nUsing jQuery 3.1.0, panzoom 3.2.0, on latest stable Chrome: 52.0.2743.116 m (64-bit).\r\n\r\n### Steps to reproduce\r\nSee here: http://jsbin.com/xoquwa/edit?html,js,output.\r\nI've taken the template JSbin and the \"Use the mousewheel to zoom on a focal point\" section from the demo page, and the only thing I changed was to add a \"$set\" parameter in the panzoom initialization. (I also added a few selectors to make everything work together).\r\n\r\n### Expected behavior\r\nThe focal point should stay in the same screen position while the panzoom element zooms in and out.\r\n\r\n### Actual behaviour\r\nThe focal point moves dramatically, and the viewport zooms in and out along a parabolic curve.\r\n"},"comment":{"url":"https://api.github.com/repos/timmywil/jquery.panzoom/issues/comments/238943457","html_url":"https://github.com/timmywil/jquery.panzoom/issues/266#issuecomment-238943457","issue_url":"https://api.github.com/repos/timmywil/jquery.panzoom/issues/266","id":238943457,"user":{"login":"timmywil","id":192451,"avatar_url":"https://avatars.githubusercontent.com/u/192451?v=3","gravatar_id":"","url":"https://api.github.com/users/timmywil","html_url":"https://github.com/timmywil","followers_url":"https://api.github.com/users/timmywil/followers","following_url":"https://api.github.com/users/timmywil/following{/other_user}","gists_url":"https://api.github.com/users/timmywil/gists{/gist_id}","starred_url":"https://api.github.com/users/timmywil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timmywil/subscriptions","organizations_url":"https://api.github.com/users/timmywil/orgs","repos_url":"https://api.github.com/users/timmywil/repos","events_url":"https://api.github.com/users/timmywil/events{/privacy}","received_events_url":"https://api.github.com/users/timmywil/received_events","type":"User","site_admin":false},"created_at":"2016-08-10T17:37:35Z","updated_at":"2016-08-10T17:37:35Z","body":"Thanks for opening an issue, but I'm not sure the focal option should support a $set in that way, since the $set element(s) themselves can even be somewhere else on the page, making expected behavior very difficult to define. The `$set` option is more for [additional elements on which to set transforms](http://jsbin.com/bivaxuq/1/edit?html,js,output). If you're going to just have one element, the set should really be #panzoom, not #tiger. Dimensions are always based on the panzoom element, which is good for most cases and bad for yours. I'm not sure your use case, but I suggest leaving the panzoom element as the $set if at all possible."}}
{"actor":{"display_login":"timmywil"}}