javascript - jQuery detect scroll reach bottom not working on mobile browsers -


i' trying detect when user scroll down bottom of web page load show contents when user scroll near bottom,

i use below function works on desktop web browsers, not worked on mobile browsers.

jquery(function(){   jquery(document).scroll(function () {     if (jquery(window).scrolltop() + jquery(window).height() > jquery(document).height() -100) {            //show contents             alert('near bottom')     }   }); }); 

this working website applied above http://discount.today/

when scroll down shows products, working on normal browsers not on mobile browsers,

can me fix issue please. tried lots of solution on internet no luck, thank you

mobile webs different desktop webs. reason simple, margins , padding different.

your website doesn't know how detect change has occurred when running on mobile far web's concern, didn't reach bottom.

you need use css 3 maybe or jquery, signal web change in platform made, site smaller , bottom of page.

as how that, short in suggestions. general direction though.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -