Skip to content

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

Open
@AbhijitKhatua

Description

@AbhijitKhatua

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions