Skip to content

feat(mobile): Add possibility to zoom on videos#26599

Closed
evanbarke wants to merge 1 commit intoimmich-app:mainfrom
evanbarke:patch-2
Closed

feat(mobile): Add possibility to zoom on videos#26599
evanbarke wants to merge 1 commit intoimmich-app:mainfrom
evanbarke:patch-2

Conversation

@evanbarke
Copy link

@evanbarke evanbarke commented Feb 28, 2026

The outer PhotoView wrapper for videos was registering a ScaleGestureRecognizer even with scale disabled, winning the gesture arena on real devices and swallowing pinch events before the inner video PhotoView could handle them.

Description

Fixes # (issue)

How Has This Been Tested?

  • Test A
  • Test B

Open a video, double tap, pinch to zoom and pan

Screenshots (if appropriate)

Checklist:

  • I have carefully read CONTRIBUTING.md
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if applicable
  • I have no unrelated changes in the PR.
  • I have confirmed that any new dependencies are strictly necessary.
  • I have written tests for new code (if applicable)
  • I have followed naming conventions/patterns in the surrounding code
  • All code in src/services/ uses repositories implementations for database calls, filesystem operations, etc.
  • All code in src/repositories/ is pretty basic/simple and does not have any immich specific logic (that belongs in src/services/)

Please describe to which degree, if any, an LLM was used in creating this pull request.

I used LLM to help me but applied the code manually
...

Add null check for onDoubleTap and disableScaleGestures before adding gesture recognizers.
@immich-push-o-matic
Copy link

immich-push-o-matic bot commented Feb 28, 2026

Label error. Requires exactly 1 of: changelog:.*. Found: 📱mobile. A maintainer will add the required label.

@evanbarke evanbarke changed the title Refactor gesture recognizer initialization with null checks feat(mobile):Refactor gesture recognizer initialization with null checks Feb 28, 2026
@evanbarke evanbarke changed the title feat(mobile):Refactor gesture recognizer initialization with null checks feat(mobile): Add possibility to zoom on videos Feb 28, 2026
@evanbarke
Copy link
Author

This time I carefully cherry picked the AI code to make sure it was succinct and logical and I tested the APK on a real device before.

This was a tricky one because on the emulator the zoom worked but the real gestures didn't on a real device

@goalie2002
Copy link
Contributor

Regarding your comment in #26590, I'm just a contributor so I don't have any influence on that. In general you just have to wait for someone to get around to it, but I think this issue was already addressed in #26527

@uhthomas
Copy link
Collaborator

uhthomas commented Mar 4, 2026

I agree @goalie2002, we have removed the nested photo view and this should no longer be an issue. There is a quirk where the native video viewer will absorb pointer events (not sure if that's a problem on main at the moment though), but it should be addressed by #26673.

@uhthomas uhthomas closed this Mar 4, 2026
@uhthomas
Copy link
Collaborator

uhthomas commented Mar 4, 2026

Thank you though @evanbarke, hugely appreciate you being proactive in fixes!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants