matheusdavidson / angular-cropperjs

CropperJS integration for Angular +6
MIT License
109 stars 69 forks source link

cropper.setDragMode("move") and cropper.crop() not working #45

Open chr1soscl opened 5 years ago

chr1soscl commented 5 years ago

Hello, I installed your package and I am able to get it start, but it seems the above functionality is not working. cropper.setDragMode("move"); cropper.crop()

you can find the code and the demo app below: https://imageeditorcropperjs.herokuapp.com/ https://github.com/chr1soscl/imageEditorCropperJS

StefansArya commented 4 years ago

My solution is adding setTimeout after the replacing the URL, maybe we need to call setDragMode after the image was loaded.