@jsenv/navi 0.30.14 → 0.30.15

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.
@@ -89179,6 +89179,13 @@ const useRunItems = (store, {
89179
89179
  if (askEnd > runEnd - 1) {
89180
89180
  askEnd = runEnd - 1;
89181
89181
  }
89182
+ // Only the item before the window's first one says whether that one opens
89183
+ // its group (see whereGroupContinues). Asked for with it, the first item
89184
+ // lands with its group known, not guessed: a wrong guess changes the room
89185
+ // above it, label and scroll inset, once the item before comes.
89186
+ if (groupBy && askStart === windowFrom && windowFrom > runStart && !store.holds(rankOf(windowFrom - 1)) && (!groupOfMissing || groupOfMissing(windowFrom - 1) === undefined)) {
89187
+ askStart = windowFrom - 1;
89188
+ }
89182
89189
  }
89183
89190
  // The item the missing ones hang from, when there is one: a source paginating
89184
89191
  // by cursor ("the 50 before this one") needs an item to count from, and an