diff options
author | Miguel Ángel Moreno <mail@migalmoreno.com> | 2023-01-05 15:27:04 +0100 |
---|---|---|
committer | Miguel Ángel Moreno <mail@migalmoreno.com> | 2023-01-05 15:27:04 +0100 |
commit | 86a58643fa6f5c176325ccf70abf100be82003ec (patch) | |
tree | 129e79681fe5d35a54ff409e60e5194b34b96b9a | |
parent | 107266a1a492bf793e538854248059016fe6182b (diff) |
feat(frontend): Add scroll support for mobile
-rw-r--r-- | src/frontend/tau/views.cljs | 1 |
1 files changed, 1 insertions, 0 deletions
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])) |