Skip to content

Pinch zoom moves image away from screen center #512

Closed
@jsblanco

Description

@jsblanco

Describe the bug

For some reason, when using my Panzoom app on mobile (any device), when trying to pinch zoom the image moves to the corner right when zooming in, and to the top left when zooming out, instead of zooming in place. Sometimes, when just starting the app, zoom out works properly before moving the image, and then the problem come back.

Zooming in and out with the scroll wheel works as it should, it's only pinch zoom that doesn't.

Your environment

  • Latest version (installed today)
  • Vivaldi browser, Kiwi browser, Chrome, Firefox, all latest versions.

Expected behavior

Zoomed image should stay centered where the user is zooming in/out.

Actual behavior

Zoomed image moves, and zooming in centers the bottom right of the image on the screen, while zooming out centers the top left.

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