mirror of
https://github.com/penpot/penpot.git
synced 2025-08-01 17:58:24 +02:00
✨ Add context menu with right click in dashboard
This commit is contained in:
parent
70cba4bbdf
commit
e87dc6d34c
10 changed files with 235 additions and 117 deletions
|
@ -249,6 +249,9 @@
|
|||
(let [class-list (.-classList ^js node)]
|
||||
(.contains ^js class-list class-name)))
|
||||
|
||||
(defn child? [node1 node2]
|
||||
(.contains ^js node2 ^js node1))
|
||||
|
||||
(defn get-user-agent []
|
||||
(.-userAgent globals/navigator))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue