@jsenv/navi 0.29.361 → 0.29.362
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 +289 -104
- package/dist/dev/jsenv_navi.js.map +4 -4
- package/dist/jsenv_navi.js +289 -104
- package/dist/jsenv_navi.js.map +4 -4
- package/docs/scroll.md +6 -0
- package/package.json +1 -1
package/docs/scroll.md
CHANGED
|
@@ -157,6 +157,12 @@ picked up then. When it is still not the box you mean, say so explicitly with
|
|
|
157
157
|
`open`/`defaultOpen` elsewhere in navi. The list goes back there every time it
|
|
158
158
|
changes, even after the user scrolled.
|
|
159
159
|
- **`onScrolledChange`** gives `{id, index, offset}` as the user scrolls.
|
|
160
|
+
- A list with an `id` **comes back where it was** when its screen is left and
|
|
161
|
+
come back to, the way the page does: the position is kept under the list's
|
|
162
|
+
`id` and the page's url, for the session, and put back by name the way
|
|
163
|
+
`defaultScrolled={{id, offset}}` is. A fresh arrival at the page still opens
|
|
164
|
+
at `defaultScrolled`. **`scrollResetOnNavigation`** opts out: the list then
|
|
165
|
+
opens the same way every time.
|
|
160
166
|
|
|
161
167
|
### A search moves the list, and gives it back
|
|
162
168
|
|