PhotoView
PhotoView copied to clipboard
Zoom doesn't work with double-tapes
🐛 Bug Report
Expected behavior
Reproduction steps
Configuration
Version: 1.x
Platform: :robot: Android 9.x Sometimes with a double-tap on the view, the zoom does not work. After downloading the library and spreading the logs, I found a place where the code behaves differently than with a successful response. PhotoViewAttacher -> OnGestureListener onGestureListener -> onScale if (getScale() < mMaxScale || scaleFactor < 1f) {...} This condition does not always work with double-tapes. Zoom does not work. However, if you double-tap again, the zoom will work.