mirror of
https://github.com/logseq/logseq.git
synced 2026-05-05 03:16:37 +00:00
enhance(ux): dom element as restrict container
This commit is contained in:
@@ -347,8 +347,8 @@
|
||||
(.setAttribute target "data-x" ax)
|
||||
(.setAttribute target "data-y" ay))
|
||||
))}
|
||||
:modifiers [(js/interact.modifiers.restrictRect
|
||||
(bean/->js {:restriction ".page"}))]
|
||||
:modifiers [(js/interact.modifiers.restrict
|
||||
(bean/->js {:restriction (.closest el ".page")}))]
|
||||
:inertia true})
|
||||
))]
|
||||
;; destroy
|
||||
|
||||
Reference in New Issue
Block a user