bits-ui 1.0.0-next.24 → 1.0.0-next.25
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.
|
@@ -363,6 +363,13 @@ class ScrollAreaScrollbarXState {
|
|
|
363
363
|
});
|
|
364
364
|
}
|
|
365
365
|
});
|
|
366
|
+
$effect(() => {
|
|
367
|
+
// Ensure when a user scrolls down and then the scrollbar is hidden
|
|
368
|
+
// that when it shows again it will be positioned correctly.
|
|
369
|
+
afterTick(() => {
|
|
370
|
+
this.onResize();
|
|
371
|
+
});
|
|
372
|
+
});
|
|
366
373
|
}
|
|
367
374
|
onThumbPointerDown = (pointerPos) => {
|
|
368
375
|
this.scrollbarVis.onThumbPointerDown(pointerPos.x);
|
|
@@ -447,6 +454,13 @@ class ScrollAreaScrollbarYState {
|
|
|
447
454
|
});
|
|
448
455
|
}
|
|
449
456
|
});
|
|
457
|
+
$effect(() => {
|
|
458
|
+
// Ensure when a user scrolls down and then the scrollbar is hidden
|
|
459
|
+
// that when it shows again it will be positioned correctly.
|
|
460
|
+
afterTick(() => {
|
|
461
|
+
this.onResize();
|
|
462
|
+
});
|
|
463
|
+
});
|
|
450
464
|
}
|
|
451
465
|
onThumbPointerDown = (pointerPos) => {
|
|
452
466
|
this.scrollbarVis.onThumbPointerDown(pointerPos.y);
|