Skip to content
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

Calling setZoomAnimated() twice with the same point causes a glitch #506

Closed
bartek-wesolowski opened this issue Jan 20, 2023 · 1 comment

Comments

@bartek-wesolowski
Copy link

When you call setZoomAnimated() with some parameters and then do it again with exactly the same parameters then the focus is animated from an unexpected point to the target point. I'd expect the animation to not be run if I call setZoomAnimated() twice with the same parameters without changing the zoom or focus in the meantime.

Steps to reproduce
In AnimateZoomActivity you can add this fragment:

        binding.imageSingle.setOnClickListener {
            binding.imageSingle.setZoomAnimated(2f, 0.7f, 0.7f)
        }

Click the image to trigger the animation and then do it again. You'll notice that something is not right.

@hannesa2
Copy link
Collaborator

closed with #514

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants