mirror of
https://github.com/logseq/logseq.git
synced 2026-05-25 13:14:39 +00:00
improve(mobile): cursor caret overlap when bottom boundary inputing
This commit is contained in:
@@ -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))))
|
||||
|
||||
Reference in New Issue
Block a user