{"action":"created","issue":{"url":"https://api.github.com/repos/fengyuanchen/cropper/issues/703","repository_url":"https://api.github.com/repos/fengyuanchen/cropper","labels_url":"https://api.github.com/repos/fengyuanchen/cropper/issues/703/labels{/name}","comments_url":"https://api.github.com/repos/fengyuanchen/cropper/issues/703/comments","events_url":"https://api.github.com/repos/fengyuanchen/cropper/issues/703/events","html_url":"https://github.com/fengyuanchen/cropper/issues/703","id":156889343,"number":703,"title":"Touch-Scrolling on iOS","user":{"login":"ktrhn","id":5049311,"avatar_url":"https://avatars.githubusercontent.com/u/5049311?v=3","gravatar_id":"","url":"https://api.github.com/users/ktrhn","html_url":"https://github.com/ktrhn","followers_url":"https://api.github.com/users/ktrhn/followers","following_url":"https://api.github.com/users/ktrhn/following{/other_user}","gists_url":"https://api.github.com/users/ktrhn/gists{/gist_id}","starred_url":"https://api.github.com/users/ktrhn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktrhn/subscriptions","organizations_url":"https://api.github.com/users/ktrhn/orgs","repos_url":"https://api.github.com/users/ktrhn/repos","events_url":"https://api.github.com/users/ktrhn/events{/privacy}","received_events_url":"https://api.github.com/users/ktrhn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-05-26T02:16:02Z","updated_at":"2016-08-10T09:11:09Z","closed_at":null,"body":"Great Plugin!\r\n\r\nI am trying to enable touch-scrolling on the cropper container. I only allow moving of the crop area and would like users to be able to scroll while making scroll/touchmoves on the rest of the container. This works just fine for scroll events on desktop but not for touch events on mobile (I tested iOS/Safari). I \"emulated\" scrolling by using the cropper events, but I am losing the \"-webkit-overflow-scrolling: touch\" effect and scrolling does not feel so \"natural\". Any way to prevent cropper fetching the events or to allow propagating the touch events? \r\n\r\nHere my code so far (modal is the scrollable container).\r\n\r\n````\r\n$imageTag.cropper({\r\n    dragMode: 'none',\r\n    movable: false,\r\n    viewMode: 3,\r\n    zoomable: false\r\n});\r\n\r\nlet touchstart = null;\r\n$imageTag.on('cropstart.cropper', (event) => {\r\n    if ('none' === event.action && 'touchstart' === event.originalEvent.type) {\r\n        touchstart = event.originalEvent.pageY;\r\n    }\r\n});\r\n$imageTag.on('cropmove.cropper', (event) => {\r\n    if ('none' === event.action && 'touchmove' === event.originalEvent.type && null !== touchstart) {\r\n        modal.scrollTop += (touchstart - event.originalEvent.pageY);\r\n        touchstart = event.originalEvent.pageY;\r\n    }\r\n});\r\n$imageTag.on('cropend.cropper', (event) => {\r\n    if ('none' === event.action && 'touchend' === event.originalEvent.type && null !== touchstart) {\r\n        modal.scrollTop += (touchstart - event.originalEvent.pageY);\r\n        touchstart = null;\r\n    }\r\n});\r\n````\r\n"},"comment":{"url":"https://api.github.com/repos/fengyuanchen/cropper/issues/comments/238809597","html_url":"https://github.com/fengyuanchen/cropper/issues/703#issuecomment-238809597","issue_url":"https://api.github.com/repos/fengyuanchen/cropper/issues/703","id":238809597,"user":{"login":"fengyuanchen","id":3456749,"avatar_url":"https://avatars.githubusercontent.com/u/3456749?v=3","gravatar_id":"","url":"https://api.github.com/users/fengyuanchen","html_url":"https://github.com/fengyuanchen","followers_url":"https://api.github.com/users/fengyuanchen/followers","following_url":"https://api.github.com/users/fengyuanchen/following{/other_user}","gists_url":"https://api.github.com/users/fengyuanchen/gists{/gist_id}","starred_url":"https://api.github.com/users/fengyuanchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fengyuanchen/subscriptions","organizations_url":"https://api.github.com/users/fengyuanchen/orgs","repos_url":"https://api.github.com/users/fengyuanchen/repos","events_url":"https://api.github.com/users/fengyuanchen/events{/privacy}","received_events_url":"https://api.github.com/users/fengyuanchen/received_events","type":"User","site_admin":false},"created_at":"2016-08-10T09:11:09Z","updated_at":"2016-08-10T09:11:09Z","body":"@ktrhn Please try the latest version (v2.3.3)."}}
{"actor":{"display_login":"fengyuanchen"}}