openpencil/crates/op-host-native/src
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
..
backend refactor(host): gate op-host-native GL stack behind opt-in gl-host feature 2026-06-19 17:47:34 +08:00
context refactor(host): gate op-host-native GL stack behind opt-in gl-host feature 2026-06-19 17:47:34 +08:00
preview feat(ai): polish rust design agent workflow 2026-06-15 21:19:18 +08:00
widget_host fix(canvas): skip colour-drag scene patch for Ref/slotless anchors 2026-06-20 02:27:31 +08:00
boolean_ops.rs
canvas_view_stub.rs
lib.rs refactor(host): gate op-host-native GL stack behind opt-in gl-host feature 2026-06-19 17:47:34 +08:00
widget_host.rs refactor(editor): source CursorHint from jian-core; host owns handle+Pointer map 2026-06-19 23:42:30 +08:00