aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/tubo/views/kiosk.cljs
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/tubo/views/kiosk.cljs')
-rw-r--r--src/frontend/tubo/views/kiosk.cljs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/frontend/tubo/views/kiosk.cljs b/src/frontend/tubo/views/kiosk.cljs
index 1c072af..18566c3 100644
--- a/src/frontend/tubo/views/kiosk.cljs
+++ b/src/frontend/tubo/views/kiosk.cljs
@@ -12,8 +12,7 @@
next-page-url (:url next-page)
service-color @(rf/subscribe [:service-color])
page-loading? @(rf/subscribe [:show-page-loading])
- page-scroll @(rf/subscribe [:page-scroll])
- scrolled-to-bottom? (= page-scroll (.-scrollHeight js/document.body))]
+ scrolled-to-bottom? @(rf/subscribe [:scrolled-to-bottom])]
(when scrolled-to-bottom?
(rf/dispatch [::events/kiosk-pagination serviceId id next-page-url]))
[:div.flex.flex-col.items-center.px-5.py-2.flex-auto