Add snapping to endpoints and stops in the Gradient tool (#3732)

* snapping

* Cleanup

* fix

* Fix snapping failing sometimes on newly drawn gradient lines

* Code cleanup

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
Kulcode
2026-02-24 04:48:28 +00:00
committed by GitHub
co-authored by Keavon Chambers
parent 691d965bcf
commit 3b91d02fff
5 changed files with 118 additions and 22 deletions
@@ -484,6 +484,7 @@ impl OverlayContext {
self.render_context.set_line_width(width);
self.render_context.set_stroke_style_str(color);
self.render_context.stroke();
self.render_context.set_line_width(1.);
} else {
self.render_context.set_fill_style_str(color);
self.render_context.fill();