{"action":"created","issue":{"url":"https://api.github.com/repos/acornejo/jquery-cropbox/issues/84","repository_url":"https://api.github.com/repos/acornejo/jquery-cropbox","labels_url":"https://api.github.com/repos/acornejo/jquery-cropbox/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/acornejo/jquery-cropbox/issues/84/comments","events_url":"https://api.github.com/repos/acornejo/jquery-cropbox/issues/84/events","html_url":"https://github.com/acornejo/jquery-cropbox/pull/84","id":155410048,"number":84,"title":"Add pause() function.","user":{"login":"Growiel","id":5228735,"avatar_url":"https://avatars.githubusercontent.com/u/5228735?v=3","gravatar_id":"","url":"https://api.github.com/users/Growiel","html_url":"https://github.com/Growiel","followers_url":"https://api.github.com/users/Growiel/followers","following_url":"https://api.github.com/users/Growiel/following{/other_user}","gists_url":"https://api.github.com/users/Growiel/gists{/gist_id}","starred_url":"https://api.github.com/users/Growiel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Growiel/subscriptions","organizations_url":"https://api.github.com/users/Growiel/orgs","repos_url":"https://api.github.com/users/Growiel/repos","events_url":"https://api.github.com/users/Growiel/events{/privacy}","received_events_url":"https://api.github.com/users/Growiel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-18T03:35:21Z","updated_at":"2016-05-19T03:30:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/acornejo/jquery-cropbox/pulls/84","html_url":"https://github.com/acornejo/jquery-cropbox/pull/84","diff_url":"https://github.com/acornejo/jquery-cropbox/pull/84.diff","patch_url":"https://github.com/acornejo/jquery-cropbox/pull/84.patch"},"body":"The pause() function allows the user to pause the cropping by unbinding\r\nthe events but keeping the css, html and data alive.\r\n\r\nIt can be re-enabled by another call to pause(). You can specify a\r\nboolean for force the pause or unpause regardless of previous status."},"comment":{"url":"https://api.github.com/repos/acornejo/jquery-cropbox/issues/comments/220219303","html_url":"https://github.com/acornejo/jquery-cropbox/pull/84#issuecomment-220219303","issue_url":"https://api.github.com/repos/acornejo/jquery-cropbox/issues/84","id":220219303,"user":{"login":"Growiel","id":5228735,"avatar_url":"https://avatars.githubusercontent.com/u/5228735?v=3","gravatar_id":"","url":"https://api.github.com/users/Growiel","html_url":"https://github.com/Growiel","followers_url":"https://api.github.com/users/Growiel/followers","following_url":"https://api.github.com/users/Growiel/following{/other_user}","gists_url":"https://api.github.com/users/Growiel/gists{/gist_id}","starred_url":"https://api.github.com/users/Growiel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Growiel/subscriptions","organizations_url":"https://api.github.com/users/Growiel/orgs","repos_url":"https://api.github.com/users/Growiel/repos","events_url":"https://api.github.com/users/Growiel/events{/privacy}","received_events_url":"https://api.github.com/users/Growiel/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T03:30:55Z","updated_at":"2016-05-19T03:30:55Z","body":"Reopening with the latest version. This already includes the fix for HammerJS in PR85, but I still provided the PR85 as standalone in case you want to include the fix but not the pause() method.\r\n\r\nTurns out that HammerJS's .off() method does not restore native events, so scrolling was impossible. I fixed it by using hammerit.get('pinch').set({enable: false}); (or true) in the pause method instead.\r\n\r\nSince the first version I also added the ability to start the cropbox paused with the \"paused\" option. \r\nI updated the readme accordingly.\r\n\r\nTried it on Chrome, FF, Chrome Android, Safari iOS and IE9 without any issues."}}