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:
Robin Gareus 2012-11-18 15:35:05 +00:00
parent 5932b7903a
commit 7b57d47e25
1 changed files with 7 additions and 2 deletions

View File

@ -3456,10 +3456,15 @@ SelectionDrag::motion (GdkEvent* event, bool first_move)
framepos_t grab = grab_frame ();
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;
end = grab;
} else {