Revert "feat: add shared tilt-down hide and current-angle measurement"

This reverts commit f029e3ce91.
This commit is contained in:
Blendman974 committed 2026-11-06 22:20:24 +01:00
1 parent f029e3ce91
commit fe87e75fc2
21 files changed
+24 -356

No files matched your search

-11
View File
@@ -65,14 +65,3 @@ test("the press timeout is the host's when supplied", () => {
assert.equal(reduceGlance(shown, { type: "timeout" }, T0 + GLANCE_TIMEOUT_MS), shown);
assert.deepEqual(reduceGlance(shown, { type: "timeout" }, T0 + 10_000), GLANCE_HIDDEN);
});
test('shared tilt-down option holds a tilted board up to the safety cap; legacy defaults keep the timer', () => {
const { GLANCE_TILT_MAX_MS } = require('../.test-build/app/g2/glance-state.js');
assert.deepEqual(glanceEventForGesture('head-tilt', false), { type: 'press' });
assert.deepEqual(glanceEventForGesture('head-tilt', false, true), { type: 'tilt' });
const state = reduceGlance(GLANCE_HIDDEN, { type: 'tilt' }, 1000);
assert.equal(state.hideAtMs, 1000 + GLANCE_TILT_MAX_MS);
assert.equal(reduceGlance(state, { type: 'timeout' }, 2000), state);
assert.deepEqual(reduceGlance(state, { type: 'dismiss' }, 2000), GLANCE_HIDDEN);
assert.deepEqual(reduceGlance(state, { type: 'timeout' }, state.hideAtMs), GLANCE_HIDDEN);
});