Repository navigation
[9.4-release] fix(core): let GlobeController zoom past level 12 (#10737) - #10918
Merged
Merged
Conversation
* fix(core): let GlobeController zoom past level 12 Above zoom 12 GlobeView renders with a WebMercatorViewport, which has no getZoomAnchorStrength, so a pointer-anchored wheel zoom threw 'viewport.getZoomAnchorStrength is not a function' and the view could not zoom in any further. Only ask a GlobeViewport for its anchor strength; a WebMercatorViewport's map covers the screen, so anchor at full strength. Fixes #10736 * test(core): cover the GlobeView zoom 12 viewport handoff Adds the zoom-12 handoff case asked for in #10737 review: a wheel gesture that starts at zoom 11.9 on a GlobeViewport and lands above 12 on a WebMercatorViewport keeps the coordinate under the pointer. * test(core): tighten GlobeController zoom anchor precision The zoom 12 handoff case compared to 1 digit (0.05 degrees), which passed even with pointer anchoring broken. Both cases now compare to 5 digits: the measured residual is ~1e-6 degrees, a center-anchored zoom is ~5e-3. --------- Co-authored-by: Chris Gervang <[email protected]> Co-authored-by: Chris Gervang <[email protected]> (cherry picked from commit c782203)
53 of 66 tasks
[Medium impact] This PR appears safe to merge. SummaryFixes wheel zoom above level 12 by calling
Reviews (1) · Last reviewed commit: "fix(core): let GlobeController zoom past..." · Reviewed by Greptile |
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 up of #10737, for #10812
Background
Backports #10737 to
9.4-release. Above zoom 12,GlobeViewswitches to aWebMercatorViewport, which has nogetZoomAnchorStrength, so a wheel zoom threw inGlobeControllerand the view couldn't zoom past 12 (#10736).Change List
-xVerified the controller headless tests pass on this branch (87 tests), and
modules/coretype-checks.