Fix prevention of region drags before time 0 (#3947).
authorCarl Hetherington <carl@carlh.net>
Wed, 6 Apr 2011 23:12:45 +0000 (23:12 +0000)
committerCarl Hetherington <carl@carlh.net>
Wed, 6 Apr 2011 23:12:45 +0000 (23:12 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@9318 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/editor_drag.cc

index 00313d06720b41d00cba917179c48c96f185fa18..2d3feb5db4c634ee0912db1ef36c30277b8c01e5 100644 (file)
@@ -487,13 +487,13 @@ RegionMotionDrag::compute_x_delta (GdkEvent const * event, framepos_t* pending_r
 
        if ((*pending_region_position != _last_frame_position) && x_move_allowed) {
 
-               /* x movement since last time */
+               /* x movement since last time (in pixels) */
                dx = (static_cast<double> (*pending_region_position) - _last_frame_position) / _editor->frames_per_unit;
 
                /* total x movement */
                framecnt_t total_dx = *pending_region_position;
                if (regions_came_from_canvas()) {
-                       total_dx = total_dx - grab_frame () + _pointer_frame_offset;
+                       total_dx = total_dx - grab_frame ();
                }
 
                /* check that no regions have gone off the start of the session */