[5.4] Javascript error after scroll
Hello
The new 5.4 code in main.js
else {
// This is some other kind of page - perhaps a directory
if($(window).scrollTop() + $(window).height() > $('#page-end').position().top) {
if((pageHasMoreContent) && (! loadingPage) && (! justifiedGalleryActive)) {
next_page++;
scroll_next = true;
loadingPage = true;
pageUpdate();
}
}
}
has a bug:
Uncaught TypeError: $(...).position() is undefined
<anonymous> https://[hubzilla-instance]/view/js/main.js?v=5.4:1577
jQuery 9
<anonymous> https://[hubzilla-instance]//view/js/main.js?v=5.4:1563
main.js:1577:66
<anonyme> https://[hubzilla-instance]//view/js/main.js?v=5.4:1577
jQuery 9
<anonyme> https://[hubzilla-instance]//view/js/main.js?v=5.4:1563
Edited by Max Kostikov