fix region drag/drop from region list
The canvas’ Y-offset (rulers & scroll) needs to be subtracted here.
This commit is contained in:
parent
148c1f1768
commit
31b033f0d2
@ -1163,7 +1163,7 @@ Editor::track_canvas_drag_motion (Glib::RefPtr<Gdk::DragContext> const& context,
|
|||||||
|
|
||||||
(void) window_event_sample (&event, &px, &py);
|
(void) window_event_sample (&event, &px, &py);
|
||||||
|
|
||||||
std::pair<TimeAxisView*, int> const tv = trackview_by_y_position (py);
|
std::pair<TimeAxisView*, int> const tv = trackview_by_y_position (py, false);
|
||||||
bool can_drop = false;
|
bool can_drop = false;
|
||||||
|
|
||||||
if (tv.first != 0) {
|
if (tv.first != 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user