0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00

Use cursor as pointer on elements with interactions on view app.

This commit is contained in:
Andrey Antukh 2016-11-18 21:22:47 +01:00
parent 770007742f
commit b7a21a1caf
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -53,7 +53,9 @@
(let [show-itx? (and (mx/react itx-flag-ref)
(not (empty? (:interactions shape))))
rect (geom/inner-rect shape)]
[:g {:id (str "itx-" (:id shape))}
[:g {:id (str "itx-" (:id shape))
:style (when show-itx?
{:cursor "pointer"})}
(factory shape)
(when show-itx?
[:circle {:fill "#78dbbe"