@legendapp/list 1.0.11 → 1.0.12

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/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## 1.0.12
2
+ - Fix: Initial scroll index and scrollTo were not compensating for top padding
3
+ - Fix: Removed an overly aggressive optimization that was sometimes causing blank spaces after scrolling
4
+ - Fix: Adding a lot of items to the end with maintainScrollAtEnd could result in a large blank space
5
+ - Fix: ListHeaderComponent sometimes not positioned correctly with maintainVisibleContentPosition
6
+ - Fix: Gap styles not working with maintainVisibleContentPosition
7
+
8
+ ## 1.0.11
9
+ - Fix: scrollTo was sometimes showing gaps at the bottom or bottom after reaching the destination
10
+
1
11
  ## 1.0.10
2
12
  - Fix: Removed an optimization that only checked newly visible items, which could sometimes cause gaps in lists
3
13
  - Fix: Scroll history resets properly during scroll operations, which was causing gaps after scroll
package/index.d.mts CHANGED
@@ -244,6 +244,7 @@ interface InternalState {
244
244
  startNoBuffer: number;
245
245
  endBuffered: number;
246
246
  endNoBuffer: number;
247
+ scrollPending: number;
247
248
  scroll: number;
248
249
  scrollTime: number;
249
250
  scrollPrev: number;
@@ -278,6 +279,7 @@ interface InternalState {
278
279
  ignoreScrollFromCalcTotal?: boolean;
279
280
  disableScrollJumpsFrom?: number;
280
281
  scrollingToOffset?: number | undefined;
282
+ previousTotalSize?: number;
281
283
  averageSizes: Record<string, {
282
284
  num: number;
283
285
  avg: number;
package/index.d.ts CHANGED
@@ -244,6 +244,7 @@ interface InternalState {
244
244
  startNoBuffer: number;
245
245
  endBuffered: number;
246
246
  endNoBuffer: number;
247
+ scrollPending: number;
247
248
  scroll: number;
248
249
  scrollTime: number;
249
250
  scrollPrev: number;
@@ -278,6 +279,7 @@ interface InternalState {
278
279
  ignoreScrollFromCalcTotal?: boolean;
279
280
  disableScrollJumpsFrom?: number;
280
281
  scrollingToOffset?: number | undefined;
282
+ previousTotalSize?: number;
281
283
  averageSizes: Record<string, {
282
284
  num: number;
283
285
  avg: number;