From bdeab4debc0cf8ae750e192c55d2174d65b7bba5 Mon Sep 17 00:00:00 2001 From: charlie Date: Mon, 28 Nov 2022 16:01:40 +0800 Subject: [PATCH] improve(mobile): cursor caret overlap when bottom boundary inputing --- src/main/frontend/util.cljc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/frontend/util.cljc b/src/main/frontend/util.cljc index edb64fb4c0..449cf73f3c 100644 --- a/src/main/frontend/util.cljc +++ b/src/main/frontend/util.cljc @@ -1300,7 +1300,7 @@ vw-height (or (.-height js/window.visualViewport) (.-clientHeight js/document.documentElement)) ;; mobile toolbar height: 40px - scroll (- cursor-y (- vw-height (+ @keyboard-height 40)))] + scroll (- cursor-y (- vw-height (+ @keyboard-height (+ 40 4))))] (cond (and to-vw-one-quarter? (> cursor-y (* vw-height 0.4))) (set! (.-scrollTop main-node) (+ scroll-top (- cursor-y (/ vw-height 4))))