mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +01:00
stop dragged regions moving to the dropzone during autoscrolling towards the top track
This commit is contained in:
parent
c24bb4a8ee
commit
3f8583f8d6
1 changed files with 5 additions and 0 deletions
|
|
@ -729,6 +729,11 @@ RegionMotionDrag::motion (GdkEvent* event, bool first_move)
|
||||||
pair<TimeAxisView*, double> const r = _editor->trackview_by_y_position (current_pointer_y ());
|
pair<TimeAxisView*, double> const r = _editor->trackview_by_y_position (current_pointer_y ());
|
||||||
TimeAxisView* tv = r.first;
|
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()) {
|
if (tv && tv->view()) {
|
||||||
double layer = r.second;
|
double layer = r.second;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue