PhotoView
PhotoView copied to clipboard
Reset to original position on end of pinch
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.