summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorNick Mainsbridge <beatroute@iprimus.com.au>2008-10-13 02:22:01 +0000
committerNick Mainsbridge <beatroute@iprimus.com.au>2008-10-13 02:22:01 +0000
commit62c9bce040bed614b72396f124e4d18b3059ade7 (patch)
treefc430d5185ab5863da635cb320fe9f18fe9ca894 /gtk2_ardour
parent0eeb9c32f4c87dd23a13a6ecbc230ecf454d3d08 (diff)
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
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor_mouse.cc13
1 files changed, 0 insertions, 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 {