@jsenv/navi 0.29.427 → 0.29.429

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.
@@ -83,10 +83,11 @@ it meanwhile:
83
83
  | re-reading after a first answer | the rows from before | `refreshing` |
84
84
  | answer received | the new rows | — |
85
85
 
86
- The rows, the scroll position and the row being read all stay; the slices
87
- outside the window are forgotten only once the answer is in, and asked for again
88
- if the user goes back to them. A re-read that fails leaves the rows from before
89
- on screen. While it is in flight, the list carries `navi-refreshing` and
86
+ The items, the scroll position and the item being read all stay. An answer
87
+ confirms or replaces the ranks it covers, and nothing else: an item it did not
88
+ cover stays drawn as it was, and is asked for again when the window reaches it —
89
+ the window keeps moving while the ask is out. A re-read that fails leaves the
90
+ items from before on screen. While it is in flight, the list carries `navi-refreshing` and
90
91
  `renderItem` gets `{ refreshing }` — "what you see is from before", never "there
91
92
  is nothing to see".
92
93
 
package/docs/scroll.md CHANGED
@@ -292,7 +292,10 @@ scrollbar says how long the collection is and the DOM says how many items fit a
292
292
  screen and some. The window slides as the user scrolls, three quarters of what
293
293
  the screen leaves of it ahead of the direction the user goes, so the budget has
294
294
  to exceed what the scroller shows at once, with room for that lookahead: the
295
- list warns when it leaves less than two items beyond the screen.
295
+ list warns when it holds no more than the screen. How much room is enough is
296
+ measured, not counted: the lookahead is the time the page has to draw the next
297
+ items before a fling reaches them, so it depends on the device and on what else
298
+ runs as the list scrolls — fling it on the slowest device it runs on.
296
299
 
297
300
  The budget is a count of items or a size: `"300px"`, or `"150%"` of the
298
301
  viewport of the box that scrolls the list. A size is for items that do not
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/navi",
3
- "version": "0.29.427",
3
+ "version": "0.29.429",
4
4
  "type": "module",
5
5
  "description": "Library of components including navigation to create frontend applications",
6
6
  "repository": {
@@ -34,7 +34,7 @@
34
34
  "preact": "^11.0.0-rc.2"
35
35
  },
36
36
  "dependencies": {
37
- "@jsenv/dom": "0.17.89",
37
+ "@jsenv/dom": "0.17.90",
38
38
  "@jsenv/humanize": "1.8.6",
39
39
  "@jsenv/validity": "0.4.5"
40
40
  },