virtua 0.42.1 → 0.42.3
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/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +1 -1
- package/lib/index.mjs.map +1 -1
- package/lib/solid/index.js +1 -1
- package/lib/solid/index.js.map +1 -1
- package/lib/solid/index.jsx +3 -3
- package/lib/solid/index.jsx.map +1 -1
- package/lib/solid/index.mjs +1 -1
- package/lib/solid/index.mjs.map +1 -1
- package/lib/svelte/ListItem.svelte +1 -1
- package/lib/svelte/Virtualizer.svelte +1 -1
- package/lib/svelte/WindowVirtualizer.svelte +1 -1
- package/lib/vue/index.js +1 -1
- package/lib/vue/index.js.map +1 -1
- package/lib/vue/index.mjs +1 -1
- package/lib/vue/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/solid/index.jsx
CHANGED
|
@@ -1283,7 +1283,7 @@ const ListItem = (props) => {
|
|
|
1283
1283
|
visibility: props._hide ? "hidden" : "visible",
|
|
1284
1284
|
};
|
|
1285
1285
|
if (isHorizontal) {
|
|
1286
|
-
style.display = "flex";
|
|
1286
|
+
style.display = "inline-flex";
|
|
1287
1287
|
}
|
|
1288
1288
|
return style;
|
|
1289
1289
|
});
|
|
@@ -1431,10 +1431,10 @@ const Virtualizer = (props) => {
|
|
|
1431
1431
|
return (<Dynamic component={props.as} ref={containerRef} style={{
|
|
1432
1432
|
// contain: "content",
|
|
1433
1433
|
"overflow-anchor": "none", // opt out browser's scroll anchoring because it will conflict to scroll anchoring of virtualizer
|
|
1434
|
+
overflow: "clip", // https://github.com/inokawa/virtua/pull/485 https://github.com/inokawa/virtua/issues/717
|
|
1434
1435
|
flex: "none", // flex style can break layout
|
|
1435
1436
|
position: "relative",
|
|
1436
1437
|
visibility: "hidden", // TODO replace with other optimization methods
|
|
1437
|
-
overflow: "hidden", // https://github.com/inokawa/virtua/pull/485
|
|
1438
1438
|
width: horizontal ? totalSize() + "px" : "100%",
|
|
1439
1439
|
height: horizontal ? "100%" : totalSize() + "px",
|
|
1440
1440
|
"pointer-events": isScrolling() ? "none" : undefined,
|
|
@@ -1560,10 +1560,10 @@ const WindowVirtualizer = (props) => {
|
|
|
1560
1560
|
return (<div ref={containerRef} style={{
|
|
1561
1561
|
// contain: "content",
|
|
1562
1562
|
"overflow-anchor": "none", // opt out browser's scroll anchoring because it will conflict to scroll anchoring of virtualizer
|
|
1563
|
+
overflow: "clip", // https://github.com/inokawa/virtua/pull/485 https://github.com/inokawa/virtua/issues/717
|
|
1563
1564
|
flex: "none", // flex style can break layout
|
|
1564
1565
|
position: "relative",
|
|
1565
1566
|
visibility: "hidden", // TODO replace with other optimization methods
|
|
1566
|
-
overflow: "hidden", // https://github.com/inokawa/virtua/pull/485
|
|
1567
1567
|
width: horizontal ? totalSize() + "px" : "100%",
|
|
1568
1568
|
height: horizontal ? "100%" : totalSize() + "px",
|
|
1569
1569
|
"pointer-events": isScrolling() ? "none" : undefined,
|