tapmodo / Jcrop

Jcrop - The Javascript Image Cropping Engine
https://jcrop.com
Other
4.31k stars 938 forks source link

Selection flips out of image bounds when using aspectRatio and minSize #151

Closed spinn closed 9 years ago

spinn commented 10 years ago

This issue can be reproduced on the advanced demo example (http://deepliquid.com/projects/Jcrop/demos.php?demo=advanced) - turn on aspectRatio and min/maxSize, make a selection, drag it to any corner and drag the opposite handle out of the bounds of the image (so if you drag it to the upper right, click the lower left handle and drag it over your selection to the outside of the image). The selection will then be flipped and will go outside of the image.

jcrop

tapmodo commented 10 years ago

This is a known bug in 0.9.x. However, please try the WIP-2.x branch, it should alleviate this problem. It's a complete rewrite, but should be mostly a drop-in replacement (except the filename changes to Jcrop.js, Jcrop.css). Working on a site/documentation update, which should be released soon.

tapmodo commented 9 years ago

Since I haven't heard back from this and I believe it is not a problem in the WIP-2.x branch, I'm closing this issue.