Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

Slow zoom out with fingers gets stuck on scale less than 1 fix(It wasn't recovering back to scale 1) #153

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sungsong88
Copy link

onPanResponderRelease now always knows how to bounce back to scale 1 when it's zoomed out less than scale 1.

Previously, when you are gently zooming out and stopped your gesture slowly, then it holds the picture's scale to the value even if it's lower than 1. You had to zoom-out with flicker your fingers then it will successfully bounce back to scale 1.

After this fix, it will always zoom back to scale 1 after your fingers are released no matter what speed of your fingers was at.

zoom-out-stuck zoom-out-works

onPanResponderRelease now always knows how to bounce back to scale 1 when it's zoomed out less than scale 1.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant