Skip to content
This repository was archived by the owner on Aug 1, 2020. It is now read-only.

Setting cropBoxResizable to false doesn't work if you click and drag anywhere outside the crop box #762

Closed
mrj365 opened this issue Aug 17, 2016 · 3 comments

Comments

@mrj365
Copy link

mrj365 commented Aug 17, 2016

Chrome 52.0.2743.116 m

Steps to reproduce
Go to: https://fengyuanchen.github.io/cropperjs/
Toggle cropBoxResizableOption to off
Click outside of the crop box and drag.
The crop box is resized
This also happens in chrome on android.

@fengyuanchen
Copy link
Owner

You also need to set the dragMode option to 'none' for this case.

@egemenu
Copy link

egemenu commented Oct 3, 2016

@fengyuanchen didn't work for me.

i have an aspectRatio and as you said the settings are:
dragMode: 'none',
cropBoxResizable: false,

but when you click outside of "cropbox" its still resizeable that i don't want. tested in firefox and chrome. its closed topic but hopefully still you re gonna see that issue.

@fengyuanchen
Copy link
Owner

You may need to set the toggleDragModeOnDblclick option to 'false' too.

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

No branches or pull requests

3 participants