{"action":"closed","issue":{"url":"https://api.github.com/repos/mosch/react-avatar-editor/issues/272","repository_url":"https://api.github.com/repos/mosch/react-avatar-editor","labels_url":"https://api.github.com/repos/mosch/react-avatar-editor/issues/272/labels{/name}","comments_url":"https://api.github.com/repos/mosch/react-avatar-editor/issues/272/comments","events_url":"https://api.github.com/repos/mosch/react-avatar-editor/issues/272/events","html_url":"https://github.com/mosch/react-avatar-editor/issues/272","id":374720426,"node_id":"MDU6SXNzdWUzNzQ3MjA0MjY=","number":272,"title":"getImage() and getImageScaledToCanvas() always returns default coordinates","user":{"login":"gregor2004ua","id":4721049,"node_id":"MDQ6VXNlcjQ3MjEwNDk=","avatar_url":"https://avatars3.githubusercontent.com/u/4721049?v=4","gravatar_id":"","url":"https://api.github.com/users/gregor2004ua","html_url":"https://github.com/gregor2004ua","followers_url":"https://api.github.com/users/gregor2004ua/followers","following_url":"https://api.github.com/users/gregor2004ua/following{/other_user}","gists_url":"https://api.github.com/users/gregor2004ua/gists{/gist_id}","starred_url":"https://api.github.com/users/gregor2004ua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregor2004ua/subscriptions","organizations_url":"https://api.github.com/users/gregor2004ua/orgs","repos_url":"https://api.github.com/users/gregor2004ua/repos","events_url":"https://api.github.com/users/gregor2004ua/events{/privacy}","received_events_url":"https://api.github.com/users/gregor2004ua/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-10-28T05:49:31Z","updated_at":"2018-10-28T15:28:46Z","closed_at":"2018-10-28T15:28:46Z","author_association":"NONE","body":"I noticed today that the component stopped working on my site. Seems like no matter which part of the image I select the cropper always returns the center of the image. It respects the scale that was selected, but dragging the image to adjust the area cropped has no effect.\r\nTested on Chrome 70.0.3538.67 and Safari 12.0 (12606.2.11)\r\n\r\nIt seems to still work properly on my Android Chrome 69.0.3497.100\r\n\r\nCan anyone verify if they see same behavior.\r\n\r\nHere is my code to handle cropped image and resize it to 500x500\r\n```\r\nhandleCrop = () => {\r\n    const canvas = this.editor.getImage();\r\n\r\n    let resizedCanvas = document.createElement(\"canvas\");\r\n    let resizedContext = resizedCanvas.getContext(\"2d\");\r\n    resizedCanvas.height = 500;\r\n    resizedCanvas.width = 500;\r\n    resizedContext.drawImage(canvas, 0, 0, 500, 500);\r\n    this.props.handleB64Img(resizedCanvas.toDataURL());\r\n  };\r\n```"}}
{"actor":{"display_login":"gregor2004ua"}}