diff --git a/src/widgets/cropper.jsx b/src/widgets/cropper.jsx index 4e64500f..c8a05d90 100644 --- a/src/widgets/cropper.jsx +++ b/src/widgets/cropper.jsx @@ -193,8 +193,8 @@ export default class Cropper extends React.Component { // Perform image panning. translate(pageX, pageY) { - const dX = pageX - this.mouseX; - const dY = pageY - this.mouseY; + const dX = (pageX - this.mouseX) / this.state.zoom; + const dY = (pageY - this.mouseY) / this.state.zoom; this.mouseX = pageX; this.mouseY = pageY;