removed navigation disable

This commit is contained in:
Dmitri 2026-04-22 12:48:15 +04:00
parent 6fa18bb8c3
commit b66bced6ab
2 changed files with 10 additions and 6 deletions

View File

@ -408,7 +408,8 @@ export default function RuntimePresentation({
preloadOrchestrator?.areNeighborBackgroundsReady ?? true;
// Compute disabled state for forward navigation elements
const isForwardNavDisabled = !areNeighborBackgroundsReady;
// DISABLED: Allow navigation even if neighbors not preloaded
const isForwardNavDisabled = false && !areNeighborBackgroundsReady;
const handleElementClick = useCallback(
(element: CanvasElement) => {
@ -419,9 +420,10 @@ export default function RuntimePresentation({
return;
}
// Block forward navigation if neighbor backgrounds not yet preloaded
// DISABLED: Block forward navigation if neighbor backgrounds not yet preloaded
// Back navigation is always allowed (previous pages are already visited)
if (
false &&
isNavigationType(element.type) &&
!isBackNavigation(element) &&
!areNeighborBackgroundsReady

View File

@ -1071,9 +1071,10 @@ const ConstructorPage = ({ mode = 'constructor' }: ConstructorPageProps) => {
return;
}
// Block forward navigation if neighbor backgrounds not yet preloaded
// DISABLED: Block forward navigation if neighbor backgrounds not yet preloaded
// Back navigation is always allowed (previous pages are already visited)
if (
false &&
!isBackNavigation(element) &&
!preloadOrchestrator.areNeighborBackgroundsReady
) {
@ -1564,10 +1565,10 @@ const ConstructorPage = ({ mode = 'constructor' }: ConstructorPageProps) => {
if (!shouldRender) return null;
// Compute disabled state for navigation elements
// Forward navigation disabled when:
// Disabled when:
// - Element explicitly disabled (navDisabled)
// - Transition is playing or buffering
// - Neighbor backgrounds not yet preloaded (forward only)
// - DISABLED: Neighbor backgrounds not yet preloaded (forward only)
const isForwardNav =
isNavigationElementType(element.type) &&
!isBackNavigation(element);
@ -1576,7 +1577,8 @@ const ConstructorPage = ({ mode = 'constructor' }: ConstructorPageProps) => {
(element.navDisabled ||
Boolean(transitionPreview) ||
isReverseBuffering ||
(isForwardNav &&
(false &&
isForwardNav &&
!preloadOrchestrator.areNeighborBackgroundsReady));
return (