mirror of
https://github.com/penpot/penpot.git
synced 2025-05-23 11:26:12 +02:00
🐛 Fix bug on curve path edition mode.
This commit is contained in:
parent
f0230c346c
commit
12637bbfe4
2 changed files with 8 additions and 7 deletions
|
@ -229,7 +229,7 @@
|
|||
[{:keys [wst] :as props}]
|
||||
(let [shapes-map (mf/deref shapes-map-iref)
|
||||
shapes (map #(get shapes-map %) (:selected wst))
|
||||
edition? (:edition wst)
|
||||
edition (:edition wst)
|
||||
zoom (:zoom wst 1)
|
||||
num (count shapes)
|
||||
{:keys [id type] :as shape} (first shapes)]
|
||||
|
@ -243,11 +243,12 @@
|
|||
:zoom zoom}]
|
||||
|
||||
(and (= type :text)
|
||||
(= edition? (:id shape)))
|
||||
(= edition (:id shape)))
|
||||
[:& text-edition-selection-handlers {:shape shape
|
||||
:zoom zoom}]
|
||||
(and (= type :path)
|
||||
(= edition? (:id shape)))
|
||||
(and (or (= type :path)
|
||||
(= type :curve))
|
||||
(= edition (:id shape)))
|
||||
[:& path-edition-selection-handlers {:shape shape
|
||||
:zoom zoom}]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue