fix(desktop): place private lake modules and sleep idle layers
This commit is contained in:
parent
c2a5c52501
commit
e6d45eaea8
4 changed files with 36 additions and 10 deletions
|
|
@ -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\}/)
|
||||
|
|
|
|||
Loading…
Reference in a new issue