mirror of
https://github.com/logseq/logseq.git
synced 2026-05-02 01:46:35 +00:00
improve(pdf): scroll to hightlight
This commit is contained in:
@@ -49,6 +49,11 @@
|
||||
layer)
|
||||
layer))))
|
||||
|
||||
(defn scroll-to-highlight
|
||||
[^js viewer hl]
|
||||
(when-let [js-hl (bean/->js hl)]
|
||||
(js-utils/scrollToHighlight viewer js-hl)))
|
||||
|
||||
(defn clear-all-selection
|
||||
[]
|
||||
(.removeAllRanges (js/window.getSelection)))
|
||||
|
||||
Reference in New Issue
Block a user