Skip to content

[fix/markup-pinch-acc-dismiss] Prevent accidental dismissal of markup UI via pinch gesture#1560

Merged
felix-schwarz merged 2 commits into
masterfrom
fix/markup-pinch-acc-dismiss
Jul 13, 2026
Merged

[fix/markup-pinch-acc-dismiss] Prevent accidental dismissal of markup UI via pinch gesture#1560
felix-schwarz merged 2 commits into
masterfrom
fix/markup-pinch-acc-dismiss

Conversation

@felix-schwarz

Copy link
Copy Markdown
Contributor

Description

Prevents the accidental dismissal of markup UI via pinch gesture.

Related Issue

SE-1419

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@felix-schwarz felix-schwarz force-pushed the fix/markup-pinch-acc-dismiss branch from d60e932 to 1e3f2bb Compare June 16, 2026 11:01
@jesmrec

jesmrec commented Jun 17, 2026

Copy link
Copy Markdown
Member

Problem is easily reproducible, some checks performed over iPhone and iPad, PDF and image files (markupable formats) to confirm that the pinch action does not close the mark-up mode accidentally.

Approved on my side.

jesmrec
jesmrec previously approved these changes Jun 17, 2026
@jesmrec jesmrec added the Approved by QA Approved by QA label Jun 17, 2026

@dj4oC dj4oC left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR prevents accidental dismissal of the markup UI via a pinch gesture, by setting isModalInPresentation = true on the presented edit-document view controller.

Findings

Nothing blocking. Already reviewer-tested on-device (iPhone + iPad, PDF and image/markupable formats) and approved by three reviewers, including an explicit QA sign-off in the PR comments.

One informational (non-blocking) note: isModalInPresentation is set on editDocumentViewController — the navigation controller's root — rather than on the presented navigationController itself. iOS's interactive-dismissal check normally consults the presented view controller. Since on-device QA already confirms the pinch-to-dismiss gesture is blocked as intended, this is very likely fine in practice (the pinch handler probably checks the flag directly rather than relying on system sheet-dismissal semantics) — flagging only so a future reviewer double-checks which VC is authoritative here if this pattern is reused elsewhere.

Note

Build verification skipped (Xcode not available in cloud review environment). Code analysis only.

Verdict

Commenting — no blocking findings; already approved by 3 reviewers including QA.

🤖 Automated review by Claude Code (security · stability · performance · coverage)


Generated by Claude Code

dj4oC commented Jul 8, 2026

Copy link
Copy Markdown
  • Security: no findings
  • Stability: no findings
  • Performance: no findings
  • Test coverage: N/A — 1-line UI fix, no automated test added; manually verified on-device by QA (iPhone + iPad, PDF/image markup) per PR comments
  • TODOs found: none
  • Dependency touched: no
  • CI status: all green
  • Stale review: no — already approved by 3 reviewers including QA sign-off

🤖 Automated review by Claude Code (security · stability · performance · coverage)


Generated by Claude Code

@felix-schwarz felix-schwarz force-pushed the fix/markup-pinch-acc-dismiss branch from 6099c37 to 1e3f2bb Compare July 13, 2026 08:57
@felix-schwarz felix-schwarz requested a review from a team as a code owner July 13, 2026 08:57
jesmrec
jesmrec previously approved these changes Jul 13, 2026
@felix-schwarz felix-schwarz force-pushed the fix/markup-pinch-acc-dismiss branch from 7b21933 to 192a870 Compare July 13, 2026 09:32
@felix-schwarz felix-schwarz merged commit 905a7a2 into master Jul 13, 2026
5 of 6 checks passed
@felix-schwarz felix-schwarz deleted the fix/markup-pinch-acc-dismiss branch July 13, 2026 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Approved by QA Approved by QA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants