fix: make nightdrive signage reliable and legible

This commit is contained in:
2026-09-03 02:34:15 +03:00
parent a03d4d8dba
commit cce018d3cb
39 changed files with 4635 additions and 196 deletions

View File

@@ -91,6 +91,7 @@ export function useJourneySections(
if (headings.length === 0) return false;
const scrollingElement = document.scrollingElement ?? document.documentElement;
const viewportWidth = visualViewport?.width ?? document.documentElement.clientWidth;
const viewportHeight = visualViewport?.height ?? document.documentElement.clientHeight;
const viewportOffsetTop = visualViewport?.offsetTop ?? 0;
const activationY = activationLineDocumentY({
@@ -123,6 +124,7 @@ export function useJourneySections(
direction: driveSnapshot.direction,
acceleration: driveSnapshot.acceleration,
deltaY: driveSnapshot.scrollY - previousScrollY,
viewportWidth,
viewportHeight,
crossedBoundaries,
candidateId,