Skip to content

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

Open
unrasyonel wants to merge 1 commit into
InfinityLoop1308:devfrom
unrasyonel:feature/pinch-to-zoom
Open

feat(player): add pinch-to-zoom mode#89
unrasyonel wants to merge 1 commit into
InfinityLoop1308:devfrom
unrasyonel:feature/pinch-to-zoom

Conversation

@unrasyonel

Copy link
Copy Markdown

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)

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.

1 participant