mirror of
https://github.com/logseq/logseq.git
synced 2026-05-28 14:39:48 +00:00
enhance: jump to bottom quickly for long pages
This commit is contained in:
@@ -2840,8 +2840,12 @@
|
||||
|
||||
(defn- hide-block?
|
||||
[ref]
|
||||
(let [top (.-top (.getBoundingClientRect ref))]
|
||||
(> top (+ js/window.innerHeight 500))))
|
||||
(let [rect (.getBoundingClientRect ref)
|
||||
top (.-top rect)
|
||||
bottom (.-bottom rect)]
|
||||
(or
|
||||
(< bottom -200)
|
||||
(> top (+ js/window.innerHeight 500)))))
|
||||
|
||||
(defn- get-hidden-atom
|
||||
[sub-id *ref {:keys [initial-value]}]
|
||||
|
||||
Reference in New Issue
Block a user