Jelajahi Sumber

better editing on mobile web

llcc 3 tahun lalu
induk
melakukan
a7f596b6ed
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/main/frontend/util.cljc

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

@@ -1342,7 +1342,7 @@
 #?(:cljs
    (defn scroll-editor-cursor
      [^js/HTMLElement el & {:keys [to-vw-one-quarter?]}]
-     (when (and el (native-platform?))
+     (when (and el (or (native-platform?) mobile?))
        (let [box-rect    (.getBoundingClientRect el)
              box-top     (.-top box-rect)
              box-bottom  (.-bottom box-rect)