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

While on startScale = num , the position of image is towards bottom right and sifts top left on reset #670

Open
AbhijitKhatua opened this issue Aug 5, 2024 · 0 comments

Comments

@AbhijitKhatua
Copy link

AbhijitKhatua commented Aug 5, 2024

Describe the bug

Panzoom(elem, { contain: 'outside', startScale: 1.2})
suppose i decided to give 1.2 start scale the image unpon refresh shifts to towards bottom-right and then when you click on reset button it came to the right position

Your environment

  • Version of panzoom
  • 4.5.1
  • Browser and browser version
  • latest chrome 2024

Expected behavior

initial position should be on where it goes after clicking reset

Actual behavior

initial position is shifted toward bottom-right and corrects after clicking reset

Steps to Reproduce

set startScale to something bigger with outside
you can also check this behavior in your startScale Demo link its right on the link in anycase you can't see it ty to hard refresh.
if still not able to see it click on zoom-out button then reset you will see it will not refresh to original position.

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

1 participant