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:
Aitor Moreno 2026-06-11 09:47:50 +02:00 committed by GitHub
commit 17b38e3e6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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