@tanstack/virtual-core 3.19.15 → 3.19.16
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/cjs/index.cjs +3 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +7 -0
package/dist/esm/index.js
CHANGED
|
@@ -551,12 +551,15 @@ class Virtualizer {
|
|
|
551
551
|
this.elementsCache.forEach((cached) => {
|
|
552
552
|
this.observer.observe(cached);
|
|
553
553
|
});
|
|
554
|
+
let observing = false;
|
|
554
555
|
this.unsubs.push(
|
|
555
556
|
this.options.observeElementRect(this, (rect) => {
|
|
556
557
|
this.scrollRect = rect;
|
|
557
558
|
this.maybeNotify();
|
|
559
|
+
if (observing) this.measureElement(null);
|
|
558
560
|
})
|
|
559
561
|
);
|
|
562
|
+
observing = true;
|
|
560
563
|
this.unsubs.push(
|
|
561
564
|
this.options.observeElementOffset(this, (offset, isScrolling) => {
|
|
562
565
|
var _a2, _b, _c, _d;
|