mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 19:04:02 +00:00
Increase touch-first globe zoom sensitivity
This commit is contained in:
1 parent
f2ee3c984f
commit
f490404b7f
2 files changed
+10
No files matched your search
@@ -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
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in new issue
Block a user