Skip to content

feat(player): add pinch-to-zoom mode - #89

Merged
InfinityLoop1308 merged 3 commits into
InfinityLoop1308:devfrom
unrasyonel:feature/pinch-to-zoom
Aug 22, 2026
Merged

feat(player): add pinch-to-zoom mode#89
InfinityLoop1308 merged 3 commits into
InfinityLoop1308:devfrom
unrasyonel:feature/pinch-to-zoom

Conversation

@unrasyonel

Copy link
Copy Markdown
Contributor

Summary

Added Pinch as a fourth video display mode alongside Fit, Fill, and Zoom. This allows user to pinch to zoom.

Changes

  • Added focus-aware pinch scaling and translation to ExpandableSurfaceView, from 1x to 8x.
  • Added multi-touch handling with ScaleGestureDetector.
  • Restricted it only to fullscreen.
  • Cancels pending long-press gestures to prevent accidental playback speed changes.
  • Added a small animated zoom-level indicator.

Screenshot

photo_2026-08-15_17-52-07

Video

video_2026-08-15_17-52-11.mp4

Verification

  • Kotlin and Java compilation passed.
  • Android resource processing passed.
  • Debug APK build passed.
  • Manually tested display modes, fullscreen transitions, video changes, and gesture conflicts on my Nothing Phone 2(a) device (Android 16)

@InfinityLoop1308

Copy link
Copy Markdown
Owner

Thanks , LGTM :)

@InfinityLoop1308
InfinityLoop1308 merged commit 2a082f3 into InfinityLoop1308:dev Aug 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants