Skip to content

Playground handling of aspect-ratio and initial-aspect-ratio is broken #1274

@stof

Description

@stof

Cropper version

2.0.1

Link to minimal reproduction

https://fengyuanchen.github.io/cropperjs/playground.html

Steps to reproduce

  1. Enable a 4:3 aspect ratio on the selection
  2. Enable a 16:9 initial aspect ratio on the selection
  3. Select Free as aspect ratio to remove the enforced aspect ratio

What is expected?

The behavior would apply only an initial aspect ratio

What is actually happening?

The aspect ratio is still enforced (and the resizing has some glitches) when using the bottom handle (which is expected to change the aspect ratio)

System Info

Firefox 143.0.1 on Ubuntu
For the version of cropperjs, it depends what the playground is using (probably the latest one)

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions