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

Resizing the window overwrites the initial rotation value #19

Closed
utaife opened this issue Jun 17, 2020 · 0 comments
Closed

Resizing the window overwrites the initial rotation value #19

utaife opened this issue Jun 17, 2020 · 0 comments

Comments

@utaife
Copy link

utaife commented Jun 17, 2020

If the responsive option is set to true, Rotate is overwritten to the initial value when the window is resized.

As a result, resizing the window and then executing the reset method may not return to the original rotation.

To Reproduce

  1. Set the responsive option to true
  2. Rotate with the rotate method
  3. Resize the window (or tilt it on the phone)
  4. Execute the reset method
  5. The image does not return to the original rotate

I'm using Cropper.js v1.5.6&jQuery Cropper v1.0.1

It happens in all environments.

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