mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 07:29:08 -05:00
🐛 Fix right button in frame title produces an internal error
This commit is contained in:
parent
df1c56da2d
commit
749fc61885
1 changed files with 1 additions and 2 deletions
|
@ -230,8 +230,7 @@
|
||||||
(if workspace-read-only?
|
(if workspace-read-only?
|
||||||
(dom/prevent-default event)
|
(dom/prevent-default event)
|
||||||
(when (or (dom/class? (dom/get-target event) "viewport-controls")
|
(when (or (dom/class? (dom/get-target event) "viewport-controls")
|
||||||
(dom/class? (dom/get-target event) "viewport-selrect")
|
(dom/class? (dom/get-target event) "viewport-selrect"))
|
||||||
(workspace-read-only?))
|
|
||||||
(dom/prevent-default event)
|
(dom/prevent-default event)
|
||||||
|
|
||||||
(let [position (dom/get-client-position event)]
|
(let [position (dom/get-client-position event)]
|
||||||
|
|
Loading…
Add table
Reference in a new issue