Просмотр исходного кода

fix: disable scroll-editor-cursor on web&&pc since it's unstable

Tienson Qin 8 месяцев назад
Родитель
Сommit
7346266191
1 измененных файлов с 1 добавлено и 3 удалено
  1. 1 3
      src/main/frontend/util.cljc

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

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