iTwin / iTwinUI-react

A react component library for iTwinUI.
https://github.com/iTwin/iTwinUI
Other
84 stars 23 forks source link

Table: `intersectionMargin` doesn't work #699

Closed gioeau closed 2 years ago

gioeau commented 2 years ago

Describe the bug (actual behavior)

intersectionMargin values are ignored by both onBottomReached and onRowInViewport. Both events trigger only when the specific row is in viewport no matter what intersectionMargin value is written.

Expected behavior

Setting intersectionMargin to a higher value should trigger above-mentioned events sooner when scrolling.

Reproduction

https://codesandbox.io/s/itwinui-react-minimal-example-forked-7c3syr?file=/src/App.tsx

veekeys commented 2 years ago

@gioeau, this should be fixed in v1.41.0