-
Notifications
You must be signed in to change notification settings - Fork 870
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect zoom coordinates when calling setZoom()/setZoomAnimated() #507
Comments
It looks like that it's related to #329 To be honest, it's a community project and I'm happy to merge any pull request |
This change might have caused the problem. |
This change and #329 are the same 😁 But how to proceed ? I've no clue. @SimFG do you have an idea ? |
I think that the changes made in #329 should be reverted because the formula is incorrect. Isn't the situation described in #329 (comment) a feature and not a bug? If we focus on point 0,0, don't we expect the image to be moved down like that? If not, shouldn't we adjust |
BTW, using Paparazzi for screenshot tests would be nice. |
I would love to see some outcome in the future ! |
closed with #514 |
I used an older version of
TouchImageView
in my map app. I have hardcoded point coordinates. I callsetZoomAnimated()
when someone searches for a particular point. When I updated to the newest version ofTouchImageView
thensetZoomAnimated()
/setZoom()
started zooming on a different place even though the focus coordinates didn't change. On version 3.0.3 everything still works correctly. On 3.0.4 the focus coordinates are different.Steps to reproduce
Use
TouchImageView
version 3.0.3 to show an image. Pan the image usingsetZoom(2f, 0.7f, 0.7f)
. Take a screenshot.Do the same for version 3.0.4. The screenshots will be different even though the focus coordinates are the same.
The text was updated successfully, but these errors were encountered: