jscroll icon indicating copy to clipboard operation
jscroll copied to clipboard

Loads content early

Open dmasson opened this issue 12 years ago • 12 comments

This is the URL to reproduce:

http://test.plumaz.com/library/

I begin to scroll down and more content rows appear below before the getting to the scrolling point , ..

What am I doing wrong ?

dmasson avatar Apr 02 '14 23:04 dmasson

I get from the console:

jScroll: -292 from bottom. Loading next request... jScroll: -380 from bottom. Loading next request... jScroll: -451 from bottom. Loading next request...

I'm using floating divs, and Bootstrap 3 rows, .. I don't if this is probably what's messing up

dmasson avatar Apr 02 '14 23:04 dmasson

I'm facing the similar problem. Did you figure it out?

mavidser avatar Apr 05 '14 08:04 mavidser

Me too. Facing the same issue. How did you succeed ?

Tchinkatchuk avatar Apr 09 '14 08:04 Tchinkatchuk

I ended up implementing this:

http://stackoverflow.com/questions/9249047/jquery-rebind-window-scroll-after-a-successful-ajax-call

Hope it helps guys

dmasson avatar Apr 09 '14 21:04 dmasson

I did the same :) Thanks for this answer.

Tchinkatchuk avatar Apr 10 '14 07:04 Tchinkatchuk

I had the same issue using Bootstrap 3 and floating divs. I was able to fix this with a clearing div before the pagination.

  <div style="clear:both;"></div>

erinc avatar May 02 '14 12:05 erinc

Thanks, @erinc - that clearing div did the trick for me!

dennisusdev avatar Aug 22 '14 15:08 dennisusdev

This sounds like a CSS issue and not an issue with jScroll specifically.

pklauzinski avatar Mar 03 '15 23:03 pklauzinski

After few hours digging on this weird issue, I found that the problem was caused by doctype is not correct (or not set). So it’s not a valid HTML so to speak. JQuery cannot calculate window height / document height correctly if doctype is not specified on window

Just put correct doctype above html tag and it will solve the problem.

<!DOCTYPE html>
<html>
...
</html>

faizshukri avatar Apr 12 '15 22:04 faizshukri

Thank you, @faizshukri.

pklauzinski avatar Apr 12 '15 22:04 pklauzinski

Just had same problem on my bootstrap template, clearing fixed it. @pklauzinski maybe you should consider adding such information to README?

solusipse avatar Jan 20 '16 00:01 solusipse

@faizshukri thank you, I am working in Laravel so I included header before section tag

milepanic avatar Mar 23 '18 22:03 milepanic