svelte-infinite-scroll icon indicating copy to clipboard operation
svelte-infinite-scroll copied to clipboard

Bi-directional

Open lalilaloe opened this issue 4 years ago • 2 comments

Hey, i played around somewhat with your implementation to make it bi-directional. For my usecase for an event overview and based on dates making it truly infinite 😉.

Here is what i have so far, from what i've noticed is the reverse function depended on the chunk size you add when loading more. This also applies to bi-directional, scrolling to the right is smoother than scrolling back.

REPL: https://svelte.dev/repl/271ca9360f9e4f4e825d200c87d1f029?version=3.35.0

demo

lalilaloe avatar Mar 25 '21 21:03 lalilaloe

Hi @lalilaloe , your solution is very interesting. I'm doing some tests. Would you be interested in submitting a PR with this feature?

andrelmlins avatar Mar 30 '21 04:03 andrelmlins

@lalilaloe Do you plan do create a PR for that? I would love to use this feature.

JoshuaDietz avatar Sep 03 '22 19:09 JoshuaDietz