From 86a58643fa6f5c176325ccf70abf100be82003ec Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Thu, 5 Jan 2023 15:27:04 +0100 Subject: feat(frontend): Add scroll support for mobile --- src/frontend/tau/views.cljs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/frontend') diff --git a/src/frontend/tau/views.cljs b/src/frontend/tau/views.cljs index 5f718c2..6a4789f 100644 --- a/src/frontend/tau/views.cljs +++ b/src/frontend/tau/views.cljs @@ -9,6 +9,7 @@ [tau.routes :as routes])) (defonce scroll-hook (.addEventListener js/window "scroll" #(rf/dispatch [::events/page-scroll]))) +(defonce mobile-touch-hook (.addEventListener js/document.body "touchmove" #(rf/dispatch [::events/page-scroll]))) (defonce services (rf/dispatch [::events/get-services])) (defonce kiosks (rf/dispatch [::events/get-kiosks 0])) -- cgit v1.2.3