I'm using below script to load data on scroll reaches bottom of the page and its working fine in all browsers. But it doesn't seems working in chrome if i manually zoom in / zoom out window using keyboard shortcuts Ctr+
or Ctrl-
(> or < default zoom ).
if (($(window).scrollTop() + $(window).innerHeight()) >= $(document).height()){
loadData();
}
This seems to be a bug in chrome and i have reported this here>>
Even, i made it working by applying a small height reduction (-100) to satisfy the condition little before it reaches the scroll end.
code goes like this,
if (($(window).scrollTop() + $(window).innerHeight()) >= $(document).height()-100){
loadData();
}
EDIT
Chrome developers gives following suggestion in the bug linked above.
$(window).scrollTop() + $(window).height() >= $(document).height()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With