Skip to content

Improve Media pinch-to-zoom navigation and preserve scroll position - #4206

Merged
marinofaggiana merged 2 commits into
masterfrom
media-zoom
Jul 25, 2026
Merged

Improve Media pinch-to-zoom navigation and preserve scroll position#4206
marinofaggiana merged 2 commits into
masterfrom
media-zoom

Conversation

@marinofaggiana

@marinofaggiana marinofaggiana commented Jul 25, 2026

Copy link
Copy Markdown
Member

Summary

This PR improves the Media pinch-to-zoom experience by preserving the user's position while changing the number of grid columns.

Changes

  • Preserve the first visible media item as an anchor during pinch-to-zoom.

  • Restore the collection view offset after rebuilding the layout.

  • Keep the user focused on the same media instead of jumping to a different month.

  • Update the Media date title immediately after restoring the scroll position.

  • Preserve the existing cross-dissolve transition while changing the grid layout.

Result

Pinching to zoom in or out now keeps the user in the same area of the Media timeline, providing a more stable and predictable navigation experience.

馃 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@marinofaggiana marinofaggiana changed the title Update NCMediaPinchGesture.swift Improve Media pinch-to-zoom navigation and preserve scroll position Jul 25, 2026
@marinofaggiana
marinofaggiana merged commit bd6f12c into master Jul 25, 2026
4 checks passed
@marinofaggiana
marinofaggiana deleted the media-zoom branch July 25, 2026 14:50
@marinofaggiana marinofaggiana self-assigned this Aug 3, 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.

1 participant