grid/snap minimum selection length
git-svn-id: svn://localhost/ardour2/branches/3.0@13527 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
5932b7903a
commit
7b57d47e25
@ -3456,10 +3456,15 @@ SelectionDrag::motion (GdkEvent* event, bool first_move)
|
|||||||
framepos_t grab = grab_frame ();
|
framepos_t grab = grab_frame ();
|
||||||
|
|
||||||
if (first_move) {
|
if (first_move) {
|
||||||
_editor->snap_to (grab);
|
grab = adjusted_current_frame (event, false);
|
||||||
|
if (grab < pending_position) {
|
||||||
|
_editor->snap_to (grab, -1);
|
||||||
|
} else {
|
||||||
|
_editor->snap_to (grab, 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pending_position < grab_frame()) {
|
if (pending_position < grab) {
|
||||||
start = pending_position;
|
start = pending_position;
|
||||||
end = grab;
|
end = grab;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user