fix issue with region dragging while mouse pointer is in rulers/marker lanes
This commit is contained in:
parent
c76523aeaa
commit
7ffc06b08d
@ -708,6 +708,9 @@ RegionMotionDrag::motion (GdkEvent* event, bool first_move)
|
||||
for (list<DraggingView>::iterator i = _views.begin(); i != _views.end(); ++i) {
|
||||
|
||||
RegionView* rv = i->view;
|
||||
double y_delta;
|
||||
|
||||
y_delta = 0;
|
||||
|
||||
if (rv->region()->locked() || rv->region()->video_locked()) {
|
||||
continue;
|
||||
@ -810,9 +813,11 @@ RegionMotionDrag::motion (GdkEvent* event, bool first_move)
|
||||
* we are now dragging over.
|
||||
*/
|
||||
|
||||
/* Now move the region view */
|
||||
rv->move (x_delta, track_origin.y - rv->get_canvas_group()->canvas_origin().y);
|
||||
y_delta = track_origin.y - rv->get_canvas_group()->canvas_origin().y;
|
||||
|
||||
}
|
||||
|
||||
|
||||
} else {
|
||||
|
||||
/* Only move the region into the empty dropzone at the bottom if the pointer
|
||||
@ -829,11 +834,14 @@ RegionMotionDrag::motion (GdkEvent* event, bool first_move)
|
||||
last_track_bottom_edge = 0;
|
||||
}
|
||||
|
||||
rv->move (x_delta, last_track_bottom_edge - rv->get_canvas_group()->canvas_origin().y);
|
||||
y_delta = last_track_bottom_edge - rv->get_canvas_group()->canvas_origin().y;
|
||||
i->time_axis_view = -1;
|
||||
}
|
||||
}
|
||||
|
||||
/* Now move the region view */
|
||||
rv->move (x_delta, y_delta);
|
||||
|
||||
} /* foreach region */
|
||||
|
||||
_total_x_delta += x_delta;
|
||||
|
Loading…
Reference in New Issue
Block a user