13
0

Fix annoying mouse pointer offset when dragging regions to the left of the canvas.

git-svn-id: svn://localhost/ardour2/branches/3.0@3945 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Nick Mainsbridge 2008-10-13 02:22:01 +00:00
parent 0eeb9c32f4
commit 62c9bce040

View File

@ -3887,19 +3887,6 @@ Editor::region_drag_motion_callback (ArdourCanvas::Item* item, GdkEvent* event)
}
}
/* prevent the regionview from being moved to before
the zero position on the canvas.
*/
/* clamp */
if (x_delta < 0) {
if (-x_delta > ix1) {
x_delta = -ix1;
}
} else if ((x_delta > 0) && (rv->region()->last_frame() > max_frames - x_delta)) {
x_delta = max_frames - rv->region()->last_frame();
}
if (drag_info.brushing) {
mouse_brush_insert_region (rv, pending_region_position);
} else {