fix(desktop): place private lake modules and sleep idle layers

This commit is contained in:
冰朔 2026-08-16 23:39:52 +08:00
commit e6d45eaea8
4 changed files with 36 additions and 10 deletions

View file

@ -7,6 +7,8 @@ const styles = fs.readFileSync(new URL('../src/styles.css', import.meta.url), 'u
test('ambient lake motion sleeps by default and wakes only after human interaction', () => {
assert.match(source, /const \[motionAwake, setMotionAwake\] = useState\(false\)/)
assert.match(source, /function LakeAtmosphere\(\{ awake \}: \{ awake: boolean \}\)/)
assert.match(source, /\{awake && <div className="world-shimmer"/)
assert.match(source, /onPointerMove=\{wakeAmbientMotion\}/)
assert.match(source, /onPointerDown=\{wakeAmbientMotion\}/)
assert.match(source, /onKeyDown=\{wakeAmbientMotion\}/)