From bc53997d52eefaf05ffce742ea962917d4c790e8 Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Fri, 9 Dec 2022 12:11:02 +0800 Subject: [PATCH] fix: trigger on-load when bottom is reached when scroll up --- src/main/frontend/ui.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/frontend/ui.cljs b/src/main/frontend/ui.cljs index 07d80a4581..26690a84a1 100644 --- a/src/main/frontend/ui.cljs +++ b/src/main/frontend/ui.cljs @@ -443,7 +443,7 @@ (bottom-reached? node threshold)) top-reached? (= scroll-top 0) down? (scroll-down?)] - (when (and down? bottom-reached? on-load) + (when (and bottom-reached? on-load) (on-load)) (when (and (not down?) top-reached? on-top-reached) (on-top-reached))))