removed navigation disable
This commit is contained in:
parent
6fa18bb8c3
commit
b66bced6ab
@ -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
|
||||
|
||||
@ -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 (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user