@jsenv/navi 0.30.23 → 0.30.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -42441,10 +42441,14 @@ const RouteTravel = ({
42441
42441
  const pages = pagesRef.current;
42442
42442
  const currentIndex = currentPageIndex(pages);
42443
42443
  // Where the page of a window stands: the address, or where it last was for an
42444
- // address the row has no place for.
42444
+ // address the row has no place for, while the row still has that column.
42445
42445
  const liveIndexRef = useRef(0);
42446
42446
  if (currentIndex !== -1) {
42447
42447
  liveIndexRef.current = currentIndex;
42448
+ } else if (liveIndexRef.current >= pages.length) {
42449
+ // Past the row's end the page stands in a column of its own, off screen: a
42450
+ // still row does not scroll, and nothing scrolls a row to an address it lacks.
42451
+ liveIndexRef.current = pages.length === 0 ? 0 : pages.length - 1;
42448
42452
  }
42449
42453
  const liveIndex = liveIndexRef.current;
42450
42454
  const latestRef = useRef(null);