@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.
- package/dist/dev/jsenv_navi.js +5 -1
- package/dist/dev/jsenv_navi.js.map +2 -2
- package/dist/jsenv_navi.js +5 -1
- package/dist/jsenv_navi.js.map +2 -2
- package/docs/actions.md +2 -2
- package/docs/list_refresh.md +8 -0
- package/docs/resource.md +4 -3
- package/package.json +1 -1
package/dist/jsenv_navi.js
CHANGED
|
@@ -41141,10 +41141,14 @@ const RouteTravel = ({
|
|
|
41141
41141
|
const pages = pagesRef.current;
|
|
41142
41142
|
const currentIndex = currentPageIndex(pages);
|
|
41143
41143
|
// Where the page of a window stands: the address, or where it last was for an
|
|
41144
|
-
// address the row has no place for.
|
|
41144
|
+
// address the row has no place for, while the row still has that column.
|
|
41145
41145
|
const liveIndexRef = useRef(0);
|
|
41146
41146
|
if (currentIndex !== -1) {
|
|
41147
41147
|
liveIndexRef.current = currentIndex;
|
|
41148
|
+
} else if (liveIndexRef.current >= pages.length) {
|
|
41149
|
+
// Past the row's end the page stands in a column of its own, off screen: a
|
|
41150
|
+
// still row does not scroll, and nothing scrolls a row to an address it lacks.
|
|
41151
|
+
liveIndexRef.current = pages.length === 0 ? 0 : pages.length - 1;
|
|
41148
41152
|
}
|
|
41149
41153
|
const liveIndex = liveIndexRef.current;
|
|
41150
41154
|
const latestRef = useRef(null);
|