mirror of https://github.com/logseq/logseq
improve swipe condition
parent
9cc7517758
commit
e05af8b914
|
@ -194,10 +194,9 @@
|
|||
(do
|
||||
(reset! *show-left-menu? true)
|
||||
(when left
|
||||
(when (>= 55 dx 0)
|
||||
(when (>= dx 0)
|
||||
(set! (.. left -style -width) (str dx "px")))
|
||||
|
||||
(when (> 0 dx -55)
|
||||
(when (< dx 0)
|
||||
(set! (.. left -style -width) (str (max (+ 50 dx) 0) "px")))
|
||||
|
||||
(let [indent (gdom/getFirstElementChild left)]
|
||||
|
@ -210,15 +209,13 @@
|
|||
(do
|
||||
(reset! *show-right-menu? true)
|
||||
(when right
|
||||
(when (<= -85 dx 0)
|
||||
(when (<= dx 0)
|
||||
(set! (.. right -style -width) (str (- dx) "px")))
|
||||
|
||||
(when (> 85 dx 0)
|
||||
(when (> dx 0)
|
||||
(set! (.. right -style -width) (str (max (- 80 dx) 0) "px")))
|
||||
|
||||
(let [outdent (gdom/getFirstElementChild right)
|
||||
more (gdom/getLastElementChild right)]
|
||||
|
||||
(when (outdentable? block)
|
||||
(if (and (>= (.-clientWidth right) 40)
|
||||
(< (.-clientWidth right) 80))
|
||||
|
|
Loading…
Reference in New Issue