mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 18:36:43 +00:00
perf: slow switch to the editor mode for long pages
This commit is contained in:
@@ -108,7 +108,7 @@
|
||||
(when-let [touches (.-targetTouches event)]
|
||||
(let [selection-type (.-type (.getSelection js/document))]
|
||||
(when-not (= selection-type "Range")
|
||||
(when (or (not (state/sub :editor/editing?))
|
||||
(when (or (not (state/sub :editor/editing))
|
||||
(< (- (js/Date.now) @*touch-start) 600))
|
||||
(when (and (= (.-length touches) 1) @*swipe)
|
||||
(let [{:keys [x0 xi direction]} @*swipe
|
||||
|
||||
Reference in New Issue
Block a user