guoyingtao / Mantis

An iOS Image cropping library, which mimics the Photo App written in Swift.
MIT License
900 stars 180 forks source link

Manual crop does not work everytime #100

Closed plisiam closed 3 years ago

plisiam commented 3 years ago

When an user crops an image, then sometimes the crop action is reverted or modified.

Steps to reproduce - option 1:

  1. Open the crop controller
  2. Tap and drag the LEFT-TOP corner and release
  3. -> the crop view returns to the original position

https://user-images.githubusercontent.com/82956823/115572512-429df200-a2c0-11eb-8b9d-33954442f8d9.mov

Steps to reproduce - option 2:

  1. Open the crop controller
  2. Tap and drag the TOP edge and release
  3. Tap and drag the LEFT edge and release
  4. -> the crop view is zoomed out

https://user-images.githubusercontent.com/82956823/115572616-5cd7d000-a2c0-11eb-8802-dcf745bab201.mov

Notes

Suggested solution 1

Suggested solution 2

guoyingtao commented 3 years ago

@plisiam Thanks for the report and suggestions! I fixed it in a branch. Would you mind helping to check if it solve the issue by using the commit below? Thank you very much!

pod 'Mantis', :git => 'https://github.com/guoyingtao/Mantis.git', :commit => '92cbf5f408baf9132082499d8caae47c7d887b7a'
plisiam commented 3 years ago

Hi, thanks for the quick fix. 0.25 is probably ok. I can't replicate it anymore.

plisiam commented 3 years ago

Unfortunately I found one more bug with a similar symptoms, but probably different root cause. I'll enter it separately.