stop dragged regions moving to the dropzone during autoscrolling towards the top track

This commit is contained in:
Paul Davis 2015-02-18 12:20:06 -05:00
parent 07cae46369
commit 05bd709666

View file

@ -725,6 +725,11 @@ RegionMotionDrag::motion (GdkEvent* event, bool first_move)
pair<TimeAxisView*, double> const r = _editor->trackview_by_y_position (current_pointer_y ());
TimeAxisView* tv = r.first;
if (!tv && current_pointer_y() < 0) {
/* above trackview area, autoscroll hasn't moved us since last time, nothing to do */
return;
}
if (tv && tv->view()) {
double layer = r.second;