Make quality settings detail only and fold ctrl-wheel zoom into the camera's zoom inputs

Quality no longer switches clouds or water (their ports are gone) and its
atmosphere and post-processing settings are low or high detail; whether the
sky or a pass shows stays with globe.sky and effects. The separate
input.ctrlWheelZoom switch is gone: 'ctrlWheel' in the camera's zoomInputs
also relays trackpad pinches, which the application turns on.
This commit is contained in:
Sameh Khamis committed 2026-11-10 03:35:35 -08:00
1 parent 46cdeba7fa
commit 7a376ebefc
15 files changed
+87 -114

No files matched your search

+22
View File
@@ -135,6 +135,28 @@ test('zoomInputs name the zoom bindings and keep unnamed ones', () => {
assert.throws(() => (controls.zoomInputs = ['scroll']), TypeError);
});
test('ctrlWheel relays trackpad pinches while it is bound, and not after', () => {
const scene = sceneWithController();
const relays = [];
const { controls, dispose } = createCesiumControls({
scene,
widget: { container: {} },
pinchRelay: () => {
relays.push('on');
return () => relays.push('off');
},
});
controls.zoomInputs = ['wheel', 'ctrlWheel'];
controls.zoomInputs = ['ctrlWheel', 'pinch'];
assert.deepEqual(relays, ['on'], 'installed once');
controls.zoomInputs = ['wheel'];
assert.deepEqual(relays, ['on', 'off']);
controls.zoomInputs = ['ctrlWheel'];
dispose();
controls.zoomInputs = ['ctrlWheel'];
assert.deepEqual(relays, ['on', 'off', 'on', 'off'], 'none after dispose');
});
test('suspend shares the scene’s holds with other users', () => {
const scene = sceneWithController();
const c = scene.screenSpaceCameraController;