mirror of
https://github.com/logseq/logseq.git
synced 2026-05-27 14:14:24 +00:00
improve(mobile): scroll to top when double click headbar
This commit is contained in:
@@ -172,10 +172,14 @@
|
||||
:native-android (mobile-util/native-android?)}])
|
||||
:on-double-click (fn [^js e]
|
||||
(when-let [target (.-target e)]
|
||||
(when (and (util/electron?)
|
||||
(.. target -classList (contains "drag-region")))
|
||||
(js/window.apis.toggleMaxOrMinActiveWindow))))
|
||||
:style {:fontSize 50}}
|
||||
(cond
|
||||
(and (util/electron?)
|
||||
(.. target -classList (contains "drag-region")))
|
||||
(js/window.apis.toggleMaxOrMinActiveWindow)
|
||||
|
||||
(mobile-util/native-platform?)
|
||||
(util/scroll-to-top true))))
|
||||
:style {:fontSize 50}}
|
||||
[:div.l.flex.drag-region
|
||||
(when-not (mobile-util/native-platform?)
|
||||
[left-menu
|
||||
|
||||
Reference in New Issue
Block a user