made fade smoother

This commit is contained in:
Dmitri 2026-04-16 09:22:38 +04:00
parent 46fd6a5317
commit 49ca57c63e

View File

@ -238,10 +238,12 @@ export default function RuntimePresentation({
// NOTE: fadeOut config is NOT used for video transitions. // NOTE: fadeOut config is NOT used for video transitions.
// Video transitions end instantly (last frame = new page, then overlay removed). // Video transitions end instantly (last frame = new page, then overlay removed).
// fadeIn is used for non-video navigation (crossfade 500ms). // fadeIn is used for non-video navigation (crossfade 500ms).
// hasActiveTransition includes pendingTransitionComplete to prevent crossfade
// during the video-to-background handoff phase.
const { isFadingIn, resetFadeIn } = useBackgroundTransition({ const { isFadingIn, resetFadeIn } = useBackgroundTransition({
pageSwitch, pageSwitch,
fadeIn: { fadeIn: {
hasActiveTransition: Boolean(transitionPreview), hasActiveTransition: Boolean(transitionPreview) || pendingTransitionComplete,
}, },
}); });