Increase touch-first globe zoom sensitivity

This commit is contained in:
Sameh Khamis committed 2026-10-24 22:47:20 -07:00
1 parent f2ee3c984f
commit f490404b7f
2 files changed
+10

No files matched your search

+5
View File
@@ -1,5 +1,10 @@
# God's Eye View Current State # God's Eye View Current State
Touch-first devices use three times the default Cesium zoom sensitivity, so
pinching traverses globe and street scales with fewer gestures. Cesium retains
its distance-aware zoom, collision handling and minimum/maximum distance limits.
Fine-pointer desktop mouse and trackpad sensitivity is unchanged.
Analyst region queries resolve unique Natural Earth names offline without Analyst region queries resolve unique Natural Earth names offline without
geocoding, so Gold Coast and Ivory Coast name the West African natural regions. geocoding, so Gold Coast and Ivory Coast name the West African natural regions.
Duplicate names require a geocoded containment anchor; when several entries for Duplicate names require a geocoded containment anchor; when several entries for
+5
View File
@@ -137,6 +137,11 @@ export function createApplicationViewer({ container, creditContainer }) {
); );
try { try {
viewer.targetFrameRate = 60; viewer.targetFrameRate = 60;
// A phone pinch spans fewer screen pixels than desktop zoom gestures.
// Keep Cesium's distance-aware zoom and collision limits, with less travel
// required on touch-first screens. Mouse/trackpad sensitivity stays native.
if (globalThis.matchMedia?.('(pointer: coarse)').matches)
viewer.scene.screenSpaceCameraController.zoomFactor *= 3;
// Before any tile builds a draw command: Cesium's per-vertex model // Before any tile builds a draw command: Cesium's per-vertex model
// atmosphere fails to LINK on Apple's Metal backend and kills the // atmosphere fails to LINK on Apple's Metal backend and kills the
// render loop. See app/atmosphereCompat.js. // render loop. See app/atmosphereCompat.js.