mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 19:56:31 +01:00
more enforcement of left->right freehand drawing (fixes velocity drawing)
This commit is contained in:
parent
8c9b6812d7
commit
32b18073e8
1 changed files with 5 additions and 7 deletions
|
|
@ -7290,13 +7290,11 @@ FreehandLineDrag<OrderedPointList,OrderedPoint>::motion (GdkEvent* ev, bool firs
|
||||||
dragging_line->set_outline_width (2.0);
|
dragging_line->set_outline_width (2.0);
|
||||||
dragging_line->set_outline_color (UIConfiguration::instance().color ("automation line"));
|
dragging_line->set_outline_color (UIConfiguration::instance().color ("automation line"));
|
||||||
|
|
||||||
if (ev->motion.x > grab_x()) {
|
/* for freehand drawing, we only support left->right direction, for now. */
|
||||||
direction = 1;
|
direction = 1;
|
||||||
edge_x = 0;
|
edge_x = 0;
|
||||||
} else {
|
/* TODO: allow the user to move "far" left, and then start drawing from the new leftmost position.
|
||||||
direction = -1;
|
...start_grab() already occurred so this is non-trivial */
|
||||||
edge_x = std::numeric_limits<int>::max();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Add a point correspding to the start of the drag */
|
/* Add a point correspding to the start of the drag */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue