Repository navigation
test(android): cover noPinchZoom and document the pinch fix's follow-ups - #2421
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
ZoomScrollCheckgains a case fornoPinchZoom: a two-finger spread far past the slop must leave the zoom at 1. Removing theconfig.noPinchZoomcheck inScrolling.javamakes it fail withnoPinchZoom zoomed to 1.8.changelog.d/android-zoom-pinch-in.mdcredits fix(android): zoom a pinched scroll view out until the fingers meet #2311 and adds a Changed entry: sinceScrollingno longer usesScaleGestureDetector, a zoomable scroll view no longer zooms with a one-finger double tap and drag (quick scale).docs/architecture/testing.mdsays how Android reads aPinch:ScaleGestureDetectorforOnPinch, and the fingers' spread directly for a zoomableScroll.Tests:
TestZoomScrollBrakingTouchandTestScrollKeyboardTapswith JDK 21 (NSGO_REQUIRE_JDK=1), andgo run ./tools/changelog check.