-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event "cropEnd" #7
Comments
That's a really good suggestion @kaermorchen, will definitely work that in an update the next few days. Thanks! |
The current and only callback (onUpdate) triggers on every single mouse move event, which may be too much and too frequent. As such, this merge commit implements new callbacks for Croppr to cover more bases: * onCropStart: Triggers when users start modifying the crop region * onCropMove: Triggers when crop region changes (similar to onUpdate) * onCropEnd: Triggers when users stop modifying the crop region This commit sees the deprecation of the onUpdate callback in favor of the newer callbacks. However, it remains in Croppr for compatibility purposes but will be removed in the next major release. Developers still utilizing the onUpdate callback will be served a deprecation notice in the console. See #7
I've added the following three new callbacks in the develop branch. You can read the latest documentation here.
I realised It will still remain in Croppr.js however for backwards compatibility purposes, but will be removed after one or two major releases. Developers still using Let me know what you think before I merge it into master and package a new release on npm! |
Yes, that is what I needed. So fast update. Thank you. |
Issued a new release with the new callbacks as |
Hi.
@jamesssooi your Croppr.js is really cool, but using
onUpdate
event is too frequent for calculate new image.Can I use "cropEnd" event (or something like that) when user has stoped crop?
The text was updated successfully, but these errors were encountered: