You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.
I would like that the crop is initialized anytime the user takes an action ( move, rotate, etc ) so the user is not dependent on clicking the crop action.
Do you have any plans to roll this out at all ?
I implemented this already, but wondering on your thoughts if there is a better approach or should I submit a Pull Request ?
Thanks
angular-image-cropper.js
Here is what I added for it to work.
this.elements.controls.rotateLeft.addEventListener('click', function() {
self.applyRotation(-90);
self.elements.controls.crop.click(); // line added
});
this.elements.controls.rotateRight.addEventListener('click', function() {
self.applyRotation(90);
self.elements.controls.crop.click(); // line added
});
this.elements.controls.zoomIn.addEventListener('click', function() {
self.applyZoomIn(self.zoomInFactor);
self.elements.controls.crop.click(); // line added
});
this.elements.controls.zoomOut.addEventListener('click', function() {
self.applyZoomOut(self.zoomOutFactor);
self.elements.controls.crop.click(); // line added
});
And another in move function
// Move.
this.setOffset(left, top);
this.elements.controls.crop.click(); // line added
The text was updated successfully, but these errors were encountered:
Hey @bcabanes ,
I would like that the crop is initialized anytime the user takes an action ( move, rotate, etc ) so the user is not dependent on clicking the crop action.
Do you have any plans to roll this out at all ?
I implemented this already, but wondering on your thoughts if there is a better approach or should I submit a Pull Request ?
Thanks
angular-image-cropper.js
Here is what I added for it to work.
And another in move function
The text was updated successfully, but these errors were encountered: