Skip to content

feat(core): add GlobeView pointer zoom option#10307

Open
charlieforward9 wants to merge 1 commit into
visgl:masterfrom
NEW-HEAT:codex/globe-anchored-zoom
Open

feat(core): add GlobeView pointer zoom option#10307
charlieforward9 wants to merge 1 commit into
visgl:masterfrom
NEW-HEAT:codex/globe-anchored-zoom

Conversation

@charlieforward9
Copy link
Copy Markdown
Collaborator

@charlieforward9 charlieforward9 commented May 16, 2026

Summary

  • add zoomAround: 'pointer' controller option for GlobeView
  • keep existing center zoom behavior as the default
  • refactor GlobeViewport ray/sphere math into shared helpers and add globe hit testing
  • damp anchored zoom near the globe limb to reduce edge jumps

Why

Pointer-anchored zoom matches Google Earth-style interaction by preserving the globe point under the cursor/touch. Keeping it opt-in avoids changing default GlobeView behavior while letting apps choose that interaction model.

Split

Split out from #10303 so generic touch gesture work and GlobeView pointer anchoring can be reviewed independently.

Tests

  • ./node_modules/.bin/vitest run --project browser test/modules/core/controllers/controllers.spec.ts test/modules/core/viewports/globe-viewport.spec.ts
  • commit hook checks (test-fast)

@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 83.444% (+0.01%) from 83.434% — NEW-HEAT:codex/globe-anchored-zoom into visgl:master

@charlieforward9 charlieforward9 self-assigned this May 16, 2026
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.

2 participants