0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-03 04:49:03 -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) (let [show-itx? (and (mx/react itx-flag-ref)
(not (empty? (:interactions shape)))) (not (empty? (:interactions shape))))
rect (geom/inner-rect 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) (factory shape)
(when show-itx? (when show-itx?
[:circle {:fill "#78dbbe" [:circle {:fill "#78dbbe"