mirror of
https://github.com/penpot/penpot.git
synced 2026-07-27 08:28:17 +00:00
Merge pull request #10123 from penpot/superalex-fix-wasm-selected-text-hover-double-click
🐛 Keep hover on selected text layers in WASM renderer
This commit is contained in:
commit
17b38e3e6b
@ -321,8 +321,16 @@
|
||||
(filter #(or (root-frame-with-data? %)
|
||||
(and (cfh/group-shape? objects %)
|
||||
(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")
|
||||
(cfh/text-shape? (get objects %))
|
||||
(not (contains? selected %))
|
||||
(not (wasm.api/intersect-position-in-shape % @last-point-ref)))))))
|
||||
|
||||
remove-measure-xf
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user