From b390bef334bf1a9854465858d31a1eef8342dcec Mon Sep 17 00:00:00 2001 From: RickiNano <81099017+RickiNano@users.noreply.github.com> Date: Sun, 8 Nov 2026 20:05:58 +0100 Subject: [PATCH] =?UTF-8?q?Revert=20"The=20=E2=87=A7-click=20smoothing=20t?= =?UTF-8?q?est=20turns=20Catch-up=20on=20Stroke=20End=20on=20(#11887)"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit d3e8039f763d1f7ac1912e9ee2d2f6f61e3e2599. --- crates/ui-egui/src/tools/stroke_constraint.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/ui-egui/src/tools/stroke_constraint.rs b/crates/ui-egui/src/tools/stroke_constraint.rs index e6ac0c87bb..51760cc6cb 100644 --- a/crates/ui-egui/src/tools/stroke_constraint.rs +++ b/crates/ui-egui/src/tools/stroke_constraint.rs @@ -235,11 +235,9 @@ mod tests { // Undo removes just the last line. app.session.undo(); assert!(alpha(&app, 100, 60) == 0.0 && alpha(&app, 60, 60) > 0.9); - // The line start survives the undo (as in Photoshop). With smoothing and Catch-up on - // Stroke End on (it starts off, #11887), the line still runs from (100, 20) exactly to - // the click. + // The line start survives the undo (as in Photoshop). With smoothing on, the line still + // runs from (100, 20) exactly to the click. app.session.tools.brush.smoothing.amount = 0.6; - app.session.tools.brush.smoothing.catch_up_on_end = true; tool_event(&mut app, ToolEvent::Down { x: 20.0, y: 100.0, pressure: 1.0 }, shift); tool_event(&mut app, ToolEvent::Up { x: 20.0, y: 100.0 }, shift); assert!(alpha(&app, 20, 100) > 0.9 && alpha(&app, 40, 80) > 0.9 && alpha(&app, 90, 30) > 0.9);