From 11d722b8fe7f21465e0aa7c0affe0741c50da0ec Mon Sep 17 00:00:00 2001 From: Christian Ingenhaag Date: Sun, 19 Aug 2018 09:38:20 +0200 Subject: [PATCH] Bind scroll event to window Like in the filelist app binding the scroll event to $(window) works. This fixes #459 and enables app loading more than the initially loaded images. Signed-off-by: Christian Ingenhaag --- js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/app.js b/js/app.js index c8530f703..05bb10fb0 100644 --- a/js/app.js +++ b/js/app.js @@ -58,7 +58,7 @@ $(document).ready(function () { }); // This block loads new rows - $('html, #content-wrapper').scroll(function () { + $(window).scroll(function () { Gallery.view.loadVisibleRows(Gallery.albumMap[Gallery.currentAlbum]); });