Merge pull request #7374 from dotCooCoo/fix/shape-builder-hover-ended

Shape Builder, Live Paint Selection: hover highlights go when the pointer leaves the canvas
This commit is contained in:
BFlat
2026-11-14 13:43:20 +07:00
committed by GitHub
3 changed files with 65 additions and 0 deletions
+8
View File
@@ -695,6 +695,14 @@ impl Tool for ShapeBuilderTool {
self.finish_edit(cx)
}
/// The pointer hovers nothing for the tool: its highlight, the stroke a click would split and
/// the cursor swatch preview go, and a map that arrives afterwards highlights nothing.
fn hover_ended(&mut self, _cx: &ToolContext) {
self.hover = None;
self.stroke = None;
self.at = None;
}
fn poll(&mut self, cx: &ToolContext, wait: bool) -> Vec<Action> {
let mut acts = self.poll_merge(cx, wait);
if !acts.is_empty() || self.dragging {