openpencil/crates/op-host-native
Kayshen-X 64a898f71a fix(canvas): skip colour-drag scene patch for Ref/slotless anchors
Codex review of the web twin flagged a Ref-anchor mismatch: set_selected_color
is a no-op on a Ref (it carries no fill/stroke slot), so the doc write does not
land — yet the scene patch would still mutate the Ref's scene node, briefly
showing a colour the document never received (snapping back on release). Native
caught the common case via its instance-write redirect, but a non-redirected
Ref (and any gradient-only / slotless node) slipped through on both paths.

Gate both try_patch_color_drag paths on the freshly-written hex actually being
present (first_solid_fill_hex / first_solid_stroke_hex); absent → the write did
not land → fall back to the full rebuild. Same conservative guard on native +
web.
2026-06-20 02:27:31 +08:00
..
assets fix(web): use browser fonts in canvaskit shell 2026-06-19 02:39:34 +08:00
examples feat(desktop): adopt the casement winit fork 2026-05-18 21:45:09 +08:00
notes refactor(rust): rename native + desktop hosts to op-host-* crates 2026-05-16 23:49:58 +08:00
src fix(canvas): skip colour-drag scene patch for Ref/slotless anchors 2026-06-20 02:27:31 +08:00
tests refactor(host): gate op-host-native GL stack behind opt-in gl-host feature 2026-06-19 17:47:34 +08:00
Cargo.toml refactor(host): rename op-web-daemon crate to op-host-services 2026-06-19 22:35:22 +08:00