PhotoView icon indicating copy to clipboard operation
PhotoView copied to clipboard

Zoom doesn't work with double-tapes

Open houdaichang opened this issue 4 years ago • 0 comments

🐛 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.

houdaichang avatar Feb 01 '21 06:02 houdaichang