fix: make nightdrive signage reliable and legible
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user