TakuSemba / CropMe

Extremely Smooth and Easy Cropping library for you
Apache License 2.0
423 stars 74 forks source link

Fix false positive offFrame with full unzoomed picture #22

Closed silwek closed 3 years ago

silwek commented 3 years ago

I have the issue #20 , it's because of a float to int on frameRect. In my case, frameRect.left=161.999 when targetRect.left=162 but frameRect.left.toInt()=161. So off frame... With the good ceil/floor operation, it seems to works in all cases.

TakuSemba commented 3 years ago

Thank you for the fix and sorry for the late reply. I will include this and release a new version. 👍