Skip to content

Revert "fix(core): rotate GlobeView like a ball through poles (#10598)" - #10713

Merged
charlieforward9 merged 2 commits into
masterfrom
codex/revert-ball-globe
Sep 28, 2026
Merged

charlieforward9 merged 2 commits into
masterfrom
codex/revert-ball-globe

Conversation

@charlieforward9

Copy link
Copy Markdown
Member

Goal

Restore the original north-up globe navigation while changes to the default interaction model await maintainer consensus.

This reverts #10598 (commit 93f0fe01df54aadd5eb17289a21cd46470f05e30), following Felix's feedback on north-up behavior, his feedback on the existing bearing-lock implementation, and the request to revert the premature merge.

Changes

All affected files other than the release notes match the parent of #10598 exactly.

Validation

  • yarn lint — passed.
  • yarn test-fast — passed; 19 Node tests.
  • yarn test-headless --maxWorkers=1 test/modules/core/controllers test/modules/core/viewports test/modules/core/lib/view-manager.spec.ts — passed; 125 tests across 10 files.
  • yarn test-website — passed, including the package/type/declaration builds and website/gallery builds. Non-blocking warning for the unchanged /docs/TEST-STATUS#codemod-buggy-transformations anchor.
  • Six additional checks against the built globe controller passed: north-up dragging at three latitudes, both polar limits, and free rotation with a nonzero bearing.
  • git diff --check — passed. No dependency or lockfile changes.

The exact Playwright browser was installed with Node 24 into the isolated worktree after the Node 26 installer stalled. The focused browser suite used that installation with the unchanged test configuration. The full headless/render suites were not run.

This reverts commit 93f0fe0.

Restore the original north-up globe navigation while alternative navigation modes await maintainer consensus. Preserve subsequent release-note changes.
@greptile-apps

greptile-apps Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Medium risk] Reverts globe interaction behavior to north-up default.

The revert appears safe to merge under the agreed scope of this PR.

Findings

  1. P1 Bounds restore invalid latitudes ▶
  2. P2 Restored navigation lacks coverage ▶

Summary

This PR restores north-up globe dragging, inertia, and pointer zoom by reverting the ball-style navigation change.

  • Removes the ball-only helper, tests, example defaults, and documentation.
  • Preserves subsequent release-note edits while removing the reverted feature’s bullet.

Reviews (2) · Last reviewed commit: "Merge remote-tracking branch 'origin/mas..."

if (props.longitude < -180 || props.longitude > 180) {
props.longitude = mod(props.longitude + 180, 360) - 180;
}
props.latitude = clamp(props.latitude, -90, 90);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Bounds restore invalid latitudes

When maxBounds extends beyond a pole, such as [[-10, 95], [10, 100]], this clamp runs before bounds processing, so the later bounds clamp can set latitude above 90. The controller then stores and emits an invalid latitude and uses it in subsequent bounds and zoom calculations. Keep the [-90, 90] clamp after applying maxBounds.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

If this is a real bug, let's address in a follow up and keep the revert PR pure

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Agreed. This is a bounds-edge-case issue in the restored path, not something to expand this revert PR to address. Keeping the revert pure is preferable; please handle the post-maxBounds latitude clamp in a follow-up.

@@ -548,316 +496,6 @@ test('GlobeController falls back to center zoom when the pointer is off the glob
expect(controller.props.zoom, 'off-globe zoom still changes scale').not.toBeCloseTo(1);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Restored navigation lacks coverage

This removes the pole, locked-bearing, and nonzero-bearing interaction tests while restoring separate north-up drag and inertia branches. The remaining tests do not exercise the polar clamp or either inertia path, so regressions in the navigation behavior this PR restores could pass CI. Please retain focused coverage for north-up polar dragging, locked-bearing inertia, and free rotation after a bearing change.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Keep the revert pure, and then follow up with additional coverage

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Agreed—the pure-revert constraint is reasonable here. The focused navigation coverage should be added in a follow-up, so I won’t block this PR on those tests.

@coveralls

coveralls commented Sep 16, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 82.455% (-0.08%) from 82.538% — codex/revert-ball-globe into master

charlieforward9 added a commit that referenced this pull request Sep 16, 2026
Integrate #10713 and the current upstream baseline without rewriting the existing #10650 commits. Preserve the reviewed map/ball implementation and regression coverage, with ball navigation explicitly opt-in.

Clarify the migration from implicit free rotation and preserve the upstream bearing/pitch release note.
@charlieforward9

Copy link
Copy Markdown
Member Author

@copilot resolve the merge conflicts in this pull request

…lobe

# Conflicts:
#	docs/whats-new.md

Co-authored-by: charlieforward9 <[email protected]>

Copilot AI commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Resolved by merging master into this branch and fixing the docs/whats-new.md conflict in dedb15f.

@charlieforward9
charlieforward9 merged commit c62e58e into master Sep 28, 2026
7 checks passed
@charlieforward9
charlieforward9 deleted the codex/revert-ball-globe branch September 28, 2026 17:48
@chrisgervang chrisgervang added this to the v9.4 patch releases milestone Oct 4, 2026
@chrisgervang chrisgervang mentioned this pull request Oct 7, 2026
53 of 66 tasks
chrisgervang added a commit to dchaudhari7177/deck.gl that referenced this pull request Oct 11, 2026
Resolve conflicts with the visgl#10713 revert: the getZoomAnchorStrength call now
lives in GlobeController.getZoomPosition, so guard it there.
chrisgervang pushed a commit that referenced this pull request Oct 22, 2026
…" (#10713)

This reverts commit 93f0fe0.

Restore the original north-up globe navigation while alternative navigation modes await maintainer consensus. Preserve subsequent release-note changes.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
(cherry picked from commit c62e58e)
@chrisgervang

Copy link
Copy Markdown
Collaborator

Released in deck.gl 9.4.1. Thanks @charlieforward9!

@chrisgervang chrisgervang mentioned this pull request Oct 29, 2026
29 of 30 tasks
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.

4 participants