test: lock journey lifecycle and static fallback
This commit is contained in:
@@ -21,6 +21,7 @@ const journey = toRef(props, 'journey');
|
||||
const policy = toRef(props, 'policy');
|
||||
const quality = toRef(props, 'quality');
|
||||
const scene = useSceneController({ canvas, journey, policy, quality });
|
||||
const sceneState = computed(() => scene.state.value);
|
||||
const showCanvas = computed(() => (
|
||||
clientReady.value
|
||||
&& policy.value.allowSceneRequest
|
||||
@@ -34,7 +35,7 @@ onMounted(() => { clientReady.value = true; });
|
||||
|
||||
<template>
|
||||
<p id="journey-scene-description" class="visually-hidden">{{ sceneDescription }}</p>
|
||||
<div class="journey-world" aria-hidden="true" :data-scene-state="scene.state">
|
||||
<div class="journey-world" aria-hidden="true" :data-scene-state="sceneState">
|
||||
<img class="journey-poster" alt="" width="1600" height="900">
|
||||
<canvas v-if="showCanvas" ref="canvas" class="journey-canvas" aria-hidden="true" />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user