You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have cases when onScroll: async ({ isEnd, top }) => {isEnd here is false, but there is no more space to scroll.
If I use trackpad and scroll with inertia I can push through this threshold to get isEnd === true.
From debugging code I can see that end: target.scrollHeight - target.clientHeight === Math.round(top), can be off just by 1px sometimes.
is there a way to set offset somehow? So can i fetch next page on infinity scroll a little bit earlier than table reached end? Also this would fix my problems when isEnd not always true, while there is no more place to scroll.
Ideally onScroll callback can expose simulated event or at least simulated event target and allow to do calculations myself.
If this something you consider, I can create PR myself.
The text was updated successfully, but these errors were encountered:
I have cases when
onScroll: async ({ isEnd, top }) => {
isEnd
here is false, but there is no more space to scroll.If I use trackpad and scroll with inertia I can push through this threshold to get
isEnd === true
.From debugging code I can see that
end: target.scrollHeight - target.clientHeight === Math.round(top),
can be off just by 1px sometimes.is there a way to set offset somehow? So can i fetch next page on infinity scroll a little bit earlier than table reached end? Also this would fix my problems when isEnd not always true, while there is no more place to scroll.
Ideally
onScroll
callback can expose simulated event or at least simulated event target and allow to do calculations myself.If this something you consider, I can create PR myself.
The text was updated successfully, but these errors were encountered: