Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG infinite request on (change) #20

Closed
elvisbegovic opened this issue Feb 14, 2017 · 5 comments
Closed

BUG infinite request on (change) #20

elvisbegovic opened this issue Feb 14, 2017 · 5 comments

Comments

@elvisbegovic
Copy link

I succed to use your module, FINALLY ! :)

I simply use your demo to load more chunk when scrolling but it seems big bug when scroll fast or drag scrollbar until bottom, look here my gif:

bug chunk load

code:

exactly the same as your demo

browser:

bug on chrome and firefox

@rintoj
Copy link
Owner

rintoj commented Feb 14, 2017

Related to #19. Working on it.

@elvisbegovic
Copy link
Author

Nice, i cant wait !!! :-D

@gnasit
Copy link

gnasit commented Feb 23, 2017

the way I have worked around this is only do the next fetch of chunk when I have not requested the previous starting point in chunk...

to elaborate, i created a set of values going into the below method, if my set size increases while while adding the element to the set, then i call the below, else i don't fetch the next chunk.

this.fetchNextChunk(this.buffer.length, 10)

this has worked for me, in not fetching duplicates. hope this gives some ideas to avoid the duplication, until it is fixed in the library by rintoj.

good work otherwise Rintoj! thanks!

@rintoj rintoj closed this as completed in b838c59 Mar 6, 2017
@rintoj
Copy link
Owner

rintoj commented Mar 6, 2017

@istiti, @gnasit, Thanks for helping me. I have added two new events: start and end. Recommend you to use end instead of change.

Please see the updated documentation

@rintoj
Copy link
Owner

rintoj commented Mar 6, 2017

Fix is available with v0.1.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants