diff options
author | Robin Gareus <robin@gareus.org> | 2015-03-25 15:56:51 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-03-25 15:57:16 +0100 |
commit | a9b2f973958ba3680f160123033a0b8d4f3b20be (patch) | |
tree | a4394e654aadc2201641e64e55b5eb5b60b7e2d5 /gtk2_ardour/editor_drag.cc | |
parent | b90c38639ae7ad8f7fe0bb605b1eecd9b981cdac (diff) |
jot down some thoughts about drop-zone dragging.
Diffstat (limited to 'gtk2_ardour/editor_drag.cc')
-rw-r--r-- | gtk2_ardour/editor_drag.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index 57d4d1f067..9d1ff29e83 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -835,6 +835,16 @@ RegionMotionDrag::motion (GdkEvent* event, bool first_move) * * B) grab the lower, drag 1 down, region (and mouse) are in dropzone, The End. * upper region is only down one track and cannot be moved into the zone. + * + * Proposed solution: + * keep track of how many regions are in the DZ (private var), + * also count from how many tracks the dragged-regions come from (first move) + * + * if not all regions are in the DZ, keep going. + * + * Using 'default height' H for all dropzone regions will make things + * a lot simpler: (number_of_DZ_entries * H + Pointer_YPOS - DZ_YPOS) / H. + * (because at this point in time PlaylistDropzoneMap is not yet populated) */ delta_time_axis_view = _time_axis_views.size () - _last_pointer_time_axis_view; #ifdef DEBUG_DROPZONEDRAG |