Skip to content

Releases: inokawa/virtua

0.48.8

13 Mar 17:48

Choose a tag to compare

What's Changed

  • Improve scroll fix accuracy while markdown streaming by @inokawa in #868

Full Changelog: 0.48.7...0.48.8

0.48.7

12 Mar 15:21

Choose a tag to compare

What's Changed

  • Update ts compiler target by @inokawa in #854
  • Improve scroll fix accuracy when scrolling up while resizing by @inokawa in #866

Full Changelog: 0.48.6...0.48.7

0.48.6

16 Feb 03:26

Choose a tag to compare

What's Changed

  • fix(svelte): filter stale indices in Virtualizer to prevent undefined data access by @jveres in #847

New Contributors

Full Changelog: 0.48.5...0.48.6

0.48.5

26 Jan 14:48

Choose a tag to compare

What's Changed

Full Changelog: 0.48.4...0.48.5

0.48.4

26 Jan 01:20

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.48.3...0.48.4

0.48.3

15 Jan 10:51

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.48.2...0.48.3

0.48.2

01 Dec 04:45

Choose a tag to compare

What's Changed

  • Revert flex-direction: column-reverse and writing-mode support by @inokawa in #830

Full Changelog: 0.48.1...0.48.2

0.48.1

30 Nov 15:37

Choose a tag to compare

What's Changed

  • Fix incorrect negative overflow detection especially in Windows by @inokawa in #827

Full Changelog: 0.48.0...0.48.1

0.48.0

30 Nov 11:31

Choose a tag to compare

BREAKING CHANGES

Removed reverse prop from VList for React (#774)

// before
<VList reverse>{children}</VList>;

// after
// Recommended markup to align items to the bottom
<div
  style={{
    overflowY: "auto",
    height: "100%",
    display: "flex",
    flexDirection: "column",
  }}
>
  <div style={{ flexGrow: 1 }} />
  <Virtualizer>{children}</Virtualizer>
</div>;
// or if you want the exactly same markup as reverse prop, use this
const scrollRef = useRef(null);
<div
  ref={scrollRef}
  style={{
    display: "block",
    overflowY: "auto",
    contain: "strict",
    width: "100%",
    height: "100%",
  }}
>
  <div
    style={{
      display: "flex",
      flexDirection: "column",
      justifyContent: "flex-end",
      minHeight: "100%",
      overflow: "clip",
    }}
  >
    <Virtualizer scrollRef={scrollRef}>{children}</Virtualizer>
  </div>
</div>;
// ...or we can use "column-reverse" to invert scroll direction in 0.48.0. May fit depending on your usecase
<div
  style={{
    height: "100%",
    overflowY: "auto",
    display: "flex",
    flexDirection: "column-reverse",
  }}
>
  <Virtualizer>{children}</Virtualizer>
</div>;

What's Changed

New Contributors

Full Changelog: 0.47.2...0.48.0

0.47.2

26 Nov 17:17

Choose a tag to compare

What's Changed

  • Fix jump compensation is not working properly in RTL by @inokawa in #822

Full Changelog: 0.47.1...0.47.2