removed navigation disable
This commit is contained in:
parent
6fa18bb8c3
commit
b66bced6ab
@ -408,7 +408,8 @@ export default function RuntimePresentation({
|
|||||||
preloadOrchestrator?.areNeighborBackgroundsReady ?? true;
|
preloadOrchestrator?.areNeighborBackgroundsReady ?? true;
|
||||||
|
|
||||||
// Compute disabled state for forward navigation elements
|
// 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(
|
const handleElementClick = useCallback(
|
||||||
(element: CanvasElement) => {
|
(element: CanvasElement) => {
|
||||||
@ -419,9 +420,10 @@ export default function RuntimePresentation({
|
|||||||
return;
|
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)
|
// Back navigation is always allowed (previous pages are already visited)
|
||||||
if (
|
if (
|
||||||
|
false &&
|
||||||
isNavigationType(element.type) &&
|
isNavigationType(element.type) &&
|
||||||
!isBackNavigation(element) &&
|
!isBackNavigation(element) &&
|
||||||
!areNeighborBackgroundsReady
|
!areNeighborBackgroundsReady
|
||||||
|
|||||||
@ -1071,9 +1071,10 @@ const ConstructorPage = ({ mode = 'constructor' }: ConstructorPageProps) => {
|
|||||||
return;
|
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)
|
// Back navigation is always allowed (previous pages are already visited)
|
||||||
if (
|
if (
|
||||||
|
false &&
|
||||||
!isBackNavigation(element) &&
|
!isBackNavigation(element) &&
|
||||||
!preloadOrchestrator.areNeighborBackgroundsReady
|
!preloadOrchestrator.areNeighborBackgroundsReady
|
||||||
) {
|
) {
|
||||||
@ -1564,10 +1565,10 @@ const ConstructorPage = ({ mode = 'constructor' }: ConstructorPageProps) => {
|
|||||||
if (!shouldRender) return null;
|
if (!shouldRender) return null;
|
||||||
|
|
||||||
// Compute disabled state for navigation elements
|
// Compute disabled state for navigation elements
|
||||||
// Forward navigation disabled when:
|
// Disabled when:
|
||||||
// - Element explicitly disabled (navDisabled)
|
// - Element explicitly disabled (navDisabled)
|
||||||
// - Transition is playing or buffering
|
// - Transition is playing or buffering
|
||||||
// - Neighbor backgrounds not yet preloaded (forward only)
|
// - DISABLED: Neighbor backgrounds not yet preloaded (forward only)
|
||||||
const isForwardNav =
|
const isForwardNav =
|
||||||
isNavigationElementType(element.type) &&
|
isNavigationElementType(element.type) &&
|
||||||
!isBackNavigation(element);
|
!isBackNavigation(element);
|
||||||
@ -1576,7 +1577,8 @@ const ConstructorPage = ({ mode = 'constructor' }: ConstructorPageProps) => {
|
|||||||
(element.navDisabled ||
|
(element.navDisabled ||
|
||||||
Boolean(transitionPreview) ||
|
Boolean(transitionPreview) ||
|
||||||
isReverseBuffering ||
|
isReverseBuffering ||
|
||||||
(isForwardNav &&
|
(false &&
|
||||||
|
isForwardNav &&
|
||||||
!preloadOrchestrator.areNeighborBackgroundsReady));
|
!preloadOrchestrator.areNeighborBackgroundsReady));
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user