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))))