PhotoView icon indicating copy to clipboard operation
PhotoView copied to clipboard

Reset to original position on end of pinch

Open kerem0comert opened this issue 3 years ago • 0 comments

Greetings, I have the following requirement:

  • The image should be zoomable by pinching (which it already is in this library). But once the user raises his 2 fingers from the screen, the image should reset back to its original size.

First of all, there does not seem to be a callback provided to listen for pinching (if there is, please let me know). I also tried adding gestureDetectors or itemTouchListeners to manually detect the pinching myself, however adding these listeners actually breaks the zooming functionality. Any help would be much appreciated.

kerem0comert avatar Oct 07 '21 08:10 kerem0comert