mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-19 09:42:21 +00:00
Draw outlined draped lines with their outline; relay pinches for an early Ctrl+wheel
A draped solid line with an outline went into a colour batch and lost its edge; it now draws by its own outline material. A camera controller that binds Ctrl+wheel before the controls are made relays trackpad pinches from the start, not only after the binding is set again. A raster shell image zero pixels wide is left to the material, as before.
This commit is contained in:
1 parent
8ca657e63f
commit
d5e3968caa
5 files changed
+59
-3
No files matched your search
@@ -157,6 +157,24 @@ test('ctrlWheel relays trackpad pinches while it is bound, and not after', () =>
|
||||
assert.deepEqual(relays, ['on', 'off', 'on', 'off'], 'none after dispose');
|
||||
});
|
||||
|
||||
test('a controller that already binds Ctrl+wheel relays pinches from the start', () => {
|
||||
const scene = sceneWithController();
|
||||
const c = scene.screenSpaceCameraController;
|
||||
c.zoomEventTypes = [WHEEL, { eventType: WHEEL, modifier: CTRL }];
|
||||
const relays = [];
|
||||
const { dispose } = createCesiumControls({
|
||||
scene,
|
||||
widget: { container: {} },
|
||||
pinchRelay: () => {
|
||||
relays.push('on');
|
||||
return () => relays.push('off');
|
||||
},
|
||||
});
|
||||
assert.deepEqual(relays, ['on']);
|
||||
dispose();
|
||||
assert.deepEqual(relays, ['on', 'off']);
|
||||
});
|
||||
|
||||
test('suspend shares the scene’s holds with other users', () => {
|
||||
const scene = sceneWithController();
|
||||
const c = scene.screenSpaceCameraController;
|
||||
|
||||
Reference in new issue
Block a user