Fix drag position after alternate button press

When a button is released and the edit state is not "dragging", reset
the drag delta to zero.

There was a problem with the spot removal spots being dragged. If a spot
is deleted while being dragged, dragging another spot will cause a jump.
This commit is contained in:
Lawrence Lee
2021-06-12 11:37:38 -07:00
parent d02ed52e00
commit a2c5fd0f91
2 changed files with 8 additions and 0 deletions

View File

@@ -667,6 +667,7 @@ bool Spot::button3Pressed (int modifierKey)
return true;
} else if (! (modifierKey & (GDK_SHIFT_MASK | GDK_SHIFT_MASK))) {
EditSubscriber::action = EditSubscriber::Action::PICKING;
return true;
}
return false;