mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 02:46:45 +00:00
allow user to disable gestures on blocks with customized tags
This commit is contained in:
@@ -152,8 +152,14 @@
|
||||
|
||||
(defn- target-disable-swipe?
|
||||
[target]
|
||||
(or (.closest target ".dsl-query")
|
||||
(.closest target ".drawer")))
|
||||
(let [user-defined-tags (get-in (state/get-config)
|
||||
[:mobile :gestures/disabled-in-block-with-tags])]
|
||||
(prn (some #(.closest target (util/format "[data-refs-self*=%s]" %))
|
||||
user-defined-tags))
|
||||
(or (.closest target ".dsl-query")
|
||||
(.closest target ".drawer")
|
||||
(some #(.closest target (util/format "[data-refs-self*=%s]" %))
|
||||
user-defined-tags))))
|
||||
|
||||
(defn on-touch-start
|
||||
[event uuid]
|
||||
|
||||
Reference in New Issue
Block a user