1
0
Эх сурвалжийг харах

fix: virtualized list on mobile

Tienson Qin 7 сар өмнө
parent
commit
40d6f2e237

+ 3 - 1
src/main/frontend/util.cljc

@@ -100,7 +100,9 @@
              (.querySelector "[part=scroll]"))))
 #?(:cljs (defn app-scroll-container-node
            ([]
-            (gdom/getElement "main-content-container"))
+            (if (capacitor-new?)
+              (current-page-scroll)
+              (gdom/getElement "main-content-container")))
            ([el]
             (if (capacitor-new?)
               (current-page-scroll)