Reputation: 1753
I am using a jquery plugin called ImageCropper. And this is the jsfiddle to it.
When I change the y2
coordinate of the image it doesnt change in the preview.What must be going wrong?Rest of the coordinates work fine.
Upvotes: 0
Views: 2418
Reputation: 1372
I checked out your fiddle and the demo page (set it to "Free Ratio") and it behaves the same in both, its a bug of the plugin itself.
If you set an aspectRatio it works properly but otherwise it doesn't. Apparently the event listener for dragging down isn't working, so if you set the aspectRatio the listeners for the sides must be triggering the update for the preview.
Try to notify the author of the plugin with an issue or bug so he/she can fix it.
Otherwise, I would recomend Guillotine that's the plugin I use or Jcrop that's the one I used before that, depending on your needs:
Guillotine: Crop, zoom, rotate, responsive and touch support (really lightweight).
Jcrop: Cropping with free ratio.
Upvotes: 1