Skip to content

test(android): cover noPinchZoom and document the pinch fix's follow-ups - #2421

Merged
houko merged 3 commits into
mainfrom
fix/android-pinch-zoom-followups
Nov 26, 2026
Merged

houko merged 3 commits into
mainfrom
fix/android-pinch-zoom-followups

Conversation

@houko

@houko houko commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

Follow-ups to the Android pinch-zoom fix for #2302, which landed in #2415 as a rebase of @XiaoMengXinX's #2311. These came out of the review of #2311 and were pushed to its branch after #2415 was cut, so they never reached main. Thanks to @XiaoMengXinX for the original fix.

  • ZoomScrollCheck gains a case for noPinchZoom: a two-finger spread far past the slop must leave the zoom at 1. Removing the config.noPinchZoom check in Scrolling.java makes it fail with noPinchZoom zoomed to 1.8.
  • changelog.d/android-zoom-pinch-in.md credits fix(android): zoom a pinched scroll view out until the fingers meet #2311 and adds a Changed entry: since Scrolling no longer uses ScaleGestureDetector, a zoomable scroll view no longer zooms with a one-finger double tap and drag (quick scale).
  • docs/architecture/testing.md says how Android reads a Pinch: ScaleGestureDetector for OnPinch, and the fingers' spread directly for a zoomable Scroll.

Tests: TestZoomScrollBrakingTouch and TestScrollKeyboardTaps with JDK 21 (NSGO_REQUIRE_JDK=1), and go run ./tools/changelog check.

@github-actions github-actions Bot added size/XS documentation Improvements or additions to documentation Android labels Nov 26, 2026
@houko
houko merged commit 1472a52 into main Nov 26, 2026
32 checks passed
@houko
houko deleted the fix/android-pinch-zoom-followups branch November 26, 2026 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Android documentation Improvements or additions to documentation size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant