From 62c9bce040bed614b72396f124e4d18b3059ade7 Mon Sep 17 00:00:00 2001 From: Nick Mainsbridge Date: Mon, 13 Oct 2008 02:22:01 +0000 Subject: [PATCH] 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 --- gtk2_ardour/editor_mouse.cc | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc index 48cd393c4c..29feaf232c 100644 --- a/gtk2_ardour/editor_mouse.cc +++ b/gtk2_ardour/editor_mouse.cc @@ -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 {