{"action":"created","issue":{"url":"https://api.github.com/repos/danniehansen/Touch-box/issues/2","labels_url":"https://api.github.com/repos/danniehansen/Touch-box/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/danniehansen/Touch-box/issues/2/comments","events_url":"https://api.github.com/repos/danniehansen/Touch-box/issues/2/events","html_url":"https://github.com/danniehansen/Touch-box/issues/2","id":26186610,"number":2,"title":"Distortion when not square on zoom","user":{"login":"monsterlander","id":6352386,"avatar_url":"https://avatars.githubusercontent.com/u/6352386?v=3","gravatar_id":"","url":"https://api.github.com/users/monsterlander","html_url":"https://github.com/monsterlander","followers_url":"https://api.github.com/users/monsterlander/followers","following_url":"https://api.github.com/users/monsterlander/following{/other_user}","gists_url":"https://api.github.com/users/monsterlander/gists{/gist_id}","starred_url":"https://api.github.com/users/monsterlander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monsterlander/subscriptions","organizations_url":"https://api.github.com/users/monsterlander/orgs","repos_url":"https://api.github.com/users/monsterlander/repos","events_url":"https://api.github.com/users/monsterlander/events{/privacy}","received_events_url":"https://api.github.com/users/monsterlander/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/danniehansen/Touch-box/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"danniehansen","id":1164484,"avatar_url":"https://avatars.githubusercontent.com/u/1164484?v=3","gravatar_id":"","url":"https://api.github.com/users/danniehansen","html_url":"https://github.com/danniehansen","followers_url":"https://api.github.com/users/danniehansen/followers","following_url":"https://api.github.com/users/danniehansen/following{/other_user}","gists_url":"https://api.github.com/users/danniehansen/gists{/gist_id}","starred_url":"https://api.github.com/users/danniehansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danniehansen/subscriptions","organizations_url":"https://api.github.com/users/danniehansen/orgs","repos_url":"https://api.github.com/users/danniehansen/repos","events_url":"https://api.github.com/users/danniehansen/events{/privacy}","received_events_url":"https://api.github.com/users/danniehansen/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/danniehansen/Touch-box/milestones/1","labels_url":"https://api.github.com/repos/danniehansen/Touch-box/milestones/1/labels","id":570354,"number":1,"title":"2014-02-23","description":null,"creator":{"login":"danniehansen","id":1164484,"avatar_url":"https://avatars.githubusercontent.com/u/1164484?v=3","gravatar_id":"","url":"https://api.github.com/users/danniehansen","html_url":"https://github.com/danniehansen","followers_url":"https://api.github.com/users/danniehansen/followers","following_url":"https://api.github.com/users/danniehansen/following{/other_user}","gists_url":"https://api.github.com/users/danniehansen/gists{/gist_id}","starred_url":"https://api.github.com/users/danniehansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danniehansen/subscriptions","organizations_url":"https://api.github.com/users/danniehansen/orgs","repos_url":"https://api.github.com/users/danniehansen/repos","events_url":"https://api.github.com/users/danniehansen/events{/privacy}","received_events_url":"https://api.github.com/users/danniehansen/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"open","created_at":"2014-02-15T16:37:42Z","updated_at":"2014-02-15T18:26:41Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2014-01-23T18:18:05Z","updated_at":"2015-02-19T14:15:14Z","closed_at":null,"body":"Hi!\r\n\r\nFirstly, thanks for this - I've used it as inspiration for a stamp tool in an art app I'm making.\r\n\r\nOne thing I noticed that was a problem for me, if you start off with a rectangular (ie. non-square) image, the zoom distorts the size.  If my rectangular image was wider than it was tall, when zoomed, the image would stretch vertically.\r\n\r\nMy fix for it is to change this bit:\r\n\r\nnewWidth = (startWidth + (distance - startDistance)),\r\nnewHeight = (startHeight + (distance - startDistance)),\r\n\r\nto this:\r\n\r\nnewWidth = (startWidth + (distance - startDistance)),\r\nnewHeight = (startHeight + (distance - startDistance)*(startHeight/startWidth)),\r\n\r\nHopefully this will be of some help to you in return for the help your script has given me!\r\n\r\nIf the problem was just caused by my own fiddling, then happily ignore me.\r\n\r\nCheers,\r\nDan"},"comment":{"url":"https://api.github.com/repos/danniehansen/Touch-box/issues/comments/75057902","html_url":"https://github.com/danniehansen/Touch-box/issues/2#issuecomment-75057902","issue_url":"https://api.github.com/repos/danniehansen/Touch-box/issues/2","id":75057902,"user":{"login":"obb64","id":316317,"avatar_url":"https://avatars.githubusercontent.com/u/316317?v=3","gravatar_id":"","url":"https://api.github.com/users/obb64","html_url":"https://github.com/obb64","followers_url":"https://api.github.com/users/obb64/followers","following_url":"https://api.github.com/users/obb64/following{/other_user}","gists_url":"https://api.github.com/users/obb64/gists{/gist_id}","starred_url":"https://api.github.com/users/obb64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obb64/subscriptions","organizations_url":"https://api.github.com/users/obb64/orgs","repos_url":"https://api.github.com/users/obb64/repos","events_url":"https://api.github.com/users/obb64/events{/privacy}","received_events_url":"https://api.github.com/users/obb64/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T14:15:14Z","updated_at":"2015-02-19T14:15:14Z","body":"Thanks for this plugin.\r\nI think, you should resize the images with the original aspect-ratio of the image."}}