react-image-crop icon indicating copy to clipboard operation
react-image-crop copied to clipboard

Maintain aspect ratio while dragging from corners

Open mnpenner opened this issue 3 years ago • 1 comments

I know there's an aspect option already, but I don't want to prevent users from changing the aspect ratio if they wish, but I do want to make it easier for them to keep the default aspect ratio by dragging from a corner. This is the behavior that Photoshop and probably other editors use when dragging from the corners. Dragging from the sides should still change the aspect ratio like it does now.

Since this would be a breaking change, I suggest making it an option like maintainAspectRatioOnCornerDrag={true} or cornerAspect={true} or something.

mnpenner avatar Oct 01 '22 23:10 mnpenner

any workable solution?

lamhungypl avatar Jul 02 '24 05:07 lamhungypl