fix: close phase 2 journey blockers
This commit is contained in:
@@ -78,20 +78,28 @@ watch(
|
||||
watch(
|
||||
() => motion.policy.value.maximumTier,
|
||||
(tier, previous) => {
|
||||
if (tier !== previous) adaptive.setMaximum(tier, 'manual');
|
||||
if (tier !== previous) {
|
||||
adaptive.setMaximum(tier, controlsReady.value ? 'resize' : 'manual');
|
||||
}
|
||||
},
|
||||
{ flush: 'sync' },
|
||||
);
|
||||
|
||||
const setQuality = (tier: import('@/journey/motion-policy').QualityTier): void => {
|
||||
motion.setMaximumQuality(tier);
|
||||
adaptive.setMaximum(tier, 'manual');
|
||||
adaptive.setMaximum(motion.policy.value.maximumTier, 'manual');
|
||||
};
|
||||
|
||||
const enableMotion = (): void => {
|
||||
const tier = motion.maximumQuality.value === 'static' ? 'high' : motion.maximumQuality.value;
|
||||
motion.setMaximumQuality(tier);
|
||||
motion.setPaused(false);
|
||||
adaptive.setMaximum(tier, 'manual');
|
||||
adaptive.setMaximum(motion.policy.value.maximumTier, 'manual');
|
||||
};
|
||||
|
||||
const resumeMotion = (): void => {
|
||||
motion.setPaused(false);
|
||||
adaptive.setMaximum(motion.policy.value.maximumTier, 'manual');
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
@@ -118,6 +126,7 @@ onUnmounted(() => removePageListeners());
|
||||
:policy="motion.policy.value"
|
||||
:quality="actualQuality"
|
||||
:scene-description="content.sceneDescription"
|
||||
:sample-frame="adaptive.sampleFrame"
|
||||
@state-change="sceneState = $event"
|
||||
/>
|
||||
<JourneyHud
|
||||
@@ -185,7 +194,7 @@ onUnmounted(() => removePageListeners());
|
||||
:audio-muted="audio.muted.value"
|
||||
:audio-volume="controlsReady ? motion.volume.value : 0.4"
|
||||
@pause="motion.setPaused(true)"
|
||||
@resume="motion.setPaused(false)"
|
||||
@resume="resumeMotion"
|
||||
@enable="enableMotion"
|
||||
@quality-change="setQuality"
|
||||
@audio-start="audio.startFromGesture"
|
||||
|
||||
Reference in New Issue
Block a user