I am currently adjusting the cropping sequence of the image.
The application requires a minimum minimum size, however this leads to inconvenient JCrop behavior:
- Clicking without dragging produces nothing.
- Clicking and slightly dragging immediately selects the minimum height.
One possible solution would be to solve the above problems:
- The interface opens by default.
- The selection cannot be deselected.
JCrop has built-in functions for selecting by default, however I have not yet defined built-in configuration / behavior to prevent deselection.
Attempts so far -
I tried this route
$.Jcrop.defaults.onRelease = function(e) { e.preventDefault(); e.stopPropagation(); }
I also tried modifying the plugin source in several places to short circuit the functions that (possibly) perform de-selection by returning when opening these function definitions:
doneSelect Selection.release Selection.done
... without the desired result.
Any tips?
jquery image-processing jcrop
Daniel B.
source share