Skip to content

Android pinch-to-zoom zooms from center and shifts image on zoom-out #226

Description

@Salman-s10

Issue Description

On Android, pinch-to-zoom in the image viewer zooms from the center instead of the pinch location. When zooming back out, the image shifts abruptly instead of smoothly returning to the center. Double-tap zoom sometimes gets affected by this behavior.

Steps to reproduce:

Open an image on Android.

Pinch to zoom on a specific portion.

Observe zooming from the center.

Zoom out and notice abrupt shift.

Double-tap a portion and notice interference.

Expected behavior:

Pinch-zoom should zoom relative to pinch location.

Zoom-out should smoothly center the image.

Double-tap zoom should work as expected.

Environment: Android devices; iOS works correctly.

Note: A pull request has been created to fix this issue: PR ##225

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions