mirror of
https://github.com/penpot/penpot.git
synced 2026-09-11 06:28:47 +00:00
🐛 Keep hover on selected text layers in WASM renderer
This commit is contained in:
parent
d1fb1d34a1
commit
435cdcb1d4
@ -321,8 +321,16 @@
|
|||||||
(filter #(or (root-frame-with-data? %)
|
(filter #(or (root-frame-with-data? %)
|
||||||
(and (cfh/group-shape? objects %)
|
(and (cfh/group-shape? objects %)
|
||||||
(not (contains? child-parent? %)))
|
(not (contains? child-parent? %)))
|
||||||
|
;; WASM only: drop text from @hover unless the
|
||||||
|
;; cursor is over rendered glyphs, so clicks
|
||||||
|
;; pass through empty areas of the text box.
|
||||||
|
;; Skip this for shapes already in `selected`:
|
||||||
|
;; @hover drives on-click, and the first click
|
||||||
|
;; of a double-click would otherwise reselect
|
||||||
|
;; a parent/container after the pointer moves.
|
||||||
(and (features/active-feature? @st/state "render-wasm/v1")
|
(and (features/active-feature? @st/state "render-wasm/v1")
|
||||||
(cfh/text-shape? (get objects %))
|
(cfh/text-shape? (get objects %))
|
||||||
|
(not (contains? selected %))
|
||||||
(not (wasm.api/intersect-position-in-shape % @last-point-ref)))))))
|
(not (wasm.api/intersect-position-in-shape % @last-point-ref)))))))
|
||||||
|
|
||||||
remove-measure-xf
|
remove-measure-xf
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user