Skip to content

[Bug]: Double-tap zoom and image panning not working at the image viewer screen #6571

@rohit9625

Description

@rohit9625

Summary

At the image viewer screen, double-tap zoom does not trigger, and the user cannot pan the image after zooming.
The zoom behavior exists in the codebase, but it seems to be interrupted by other gesture listeners (e.g., swipe to change image).

Steps to reproduce

  1. Go to the Custom Selector
  2. View any image by long pressing
  3. Double-tap on the image or
  4. Pinch to zoom the image
  5. Then, try panning the zoomed image to explore other areas

Expected behaviour

At step 3, the image should zoom in/out when double-tapped.
At step 5, the image should be pannable to explore different areas.

Actual behaviour

At step 3, double-tapping the image does nothing.
At step 5, the image cannot be dragged or panned. Moving the finger does not shift the image.

Device name

Google Pixe 9 Pro (Emulator)

Android version

Android 15

Commons app version

main

Device logs

No response

Screenshots

Actual Behavior:

Screen_recording_20251126_235705.webm

Expected Behavior:

Screen_recording_20251126_235933.webm

Would you like to work on the issue?

Yes

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions