fix: trigger on-load when bottom is reached when scroll up

This commit is contained in:
Tienson Qin
2022-12-09 12:11:02 +08:00
parent ea2d2ae45f
commit bc53997d52

View File

@@ -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))))