I'm currently setting up an image-upload cropping sequence.
The application requires an enforced minimum size, however this results in awkward JCrop behavior:
One potential solution would solve the above problems:
JCrop has built-in functionality for a default selection, however I haven't yet identified a built-in configuration / behavior to prevent deselection.
Attempts so far -
I've tried this route
$.Jcrop.defaults.onRelease = function(e) {
e.preventDefault();
e.stopPropagation();
}
I've also tried modifying the plugin's source in several places, in order to short-circuit the functions which (perhaps) carry out the de-selection, by return
ing at the opening of these function definitions:
doneSelect
Selection.release
Selection.done
...without the desired result.
Any tips?
Set allowSelect: false, for details check: https://github.com/tapmodo/Jcrop/issues/5#issuecomment-1801926.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With