Saturday, 15 March 2014

javascript - JQuery Method Working in Chrome, but not Chrome for Android -



javascript - JQuery Method Working in Chrome, but not Chrome for Android -

this code works great in chrome desktop:

$(window).scroll(function(evt) { if($(window).scrolltop() + $(window).height() > ($(document).height() - 100)) { document.getelementbyid('mainform:hiddenregbutton').click(); } });

however, never fires in chrome android or webkit (ios). ideas why?

thanks, graeme.

this due multi-threaded compositor on chrome android. maintain scrolling smooth work offloaded gpu , gpu periodically sends it's updated scroll position main thread, scroll events not fire @ all.

this similar on ios.

javascript android jquery google-chrome webkit

No comments:

Post a Comment