flutter_crop icon indicating copy to clipboard operation
flutter_crop copied to clipboard

setting controller.aspectRatio to something larger than the original image's, will result miscalculations in collisions for vertical images

Open ramtinq opened this issue 2 years ago • 0 comments

Select a vertical image (aspectRatio less than 1), change the aspect ratio to something larger than its original ratio (e.g. 4 / 3), then the image cannot be dragged close to its top or bottom areas (it goes back, resetting the drag action). The bug does not occur, when, for example, you don't set controller.aspectRatio and just scale the image like controller.scale = 2.0. when just scaling or rotating, the image can be dragged to its topmost and lower areas as intended.

ramtinq avatar Jul 10 '23 01:07 ramtinq