13
0

fix region drag/drop from region list

The canvas’ Y-offset (rulers & scroll) needs to be subtracted here.
This commit is contained in:
Robin Gareus 2014-10-21 11:46:15 +02:00
parent 148c1f1768
commit 31b033f0d2

View File

@ -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) {