0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -05:00

🐛 Fix right button in frame title produces an internal error

This commit is contained in:
Pablo Alba 2023-05-24 17:17:35 +02:00
parent df1c56da2d
commit 749fc61885

View file

@ -230,8 +230,7 @@
(if workspace-read-only?
(dom/prevent-default event)
(when (or (dom/class? (dom/get-target event) "viewport-controls")
(dom/class? (dom/get-target event) "viewport-selrect")
(workspace-read-only?))
(dom/class? (dom/get-target event) "viewport-selrect"))
(dom/prevent-default event)
(let [position (dom/get-client-position event)]