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

dragMode not supported? #12

Closed
Maritims opened this issue Jan 25, 2018 · 3 comments
Closed

dragMode not supported? #12

Maritims opened this issue Jan 25, 2018 · 3 comments

Comments

@Maritims
Copy link

I am trying to use dragMode: 'move' in order to move the canvas instead of the crop box, but it doesn't seem to work. Is this option supported in your package?

Screenshot from https://github.com/fengyuanchen/cropper:
image

@melvas
Copy link

melvas commented Jun 6, 2018

you should manually set option movable to true 'cause it is 'false' by default:

this.cropperOptions = Object.assign({ aspectRatio, movable: false, scalable: false, zoomable: false, viewMode: 1, checkCrossOrigin: true }, this.cropperOptions);

@ghost
Copy link

ghost commented Nov 15, 2022

I had to copy the component and related code from lib folder, and
Change this line to true to get it to work with Angular 14.

@matheusdavidson
Copy link
Owner

Hey Guys, removed the default options that were blocking these features, it's in the latest version.

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

3 participants