Skip to content
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

Wrong selection, when default selection style set, but you trying manual cropping #92

Open
AndrewFall opened this issue Nov 29, 2017 · 1 comment

Comments

@AndrewFall
Copy link

AndrewFall commented Nov 29, 2017

selection-bug

-        minWidth = round(options.minWidth / scaleX) || 0;
-        minHeight = round(options.minHeight / scaleY) || 0;
+        minWidth = round(min((options.minWidth / scaleX) || 0, imgWidth));
+        minHeight = round(min((options.minHeight / scaleY) || 0, imgHeight));
@AndrewFall
Copy link
Author

I needed to apply this patch to make library work on customer site

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant