Fix history steps not being given to Line tool endpoint movements (#3739)

start transaction when dragging line endpoints to enable abort
This commit is contained in:
Ayush Amawate 2026-02-13 02:03:19 +05:30 committed by GitHub
parent 9ae13634d0
commit cd241095a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -789,6 +789,7 @@ impl Fsm for ShapeToolFsmState {
) && clicked_on_line_endpoints(layer, document, input, tool_data)
&& !input.keyboard.key(Key::Control)
{
responses.add(DocumentMessage::StartTransaction);
return ShapeToolFsmState::DraggingLineEndpoints;
}