patch from mantis user cth103 to fix up fixed-time cross-track drags
git-svn-id: svn://localhost/ardour2/trunk@1519 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
4ab5bf08d4
commit
691b0c10ac
@ -1522,6 +1522,17 @@ Editor::motion_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemType item
|
||||
|
||||
drag_info.move_threshold_passed = (abs ((int) (drag_info.current_pointer_x - drag_info.grab_x)) > 4);
|
||||
|
||||
/* if we are dragging Regions we must also consider a change in track
|
||||
** as passing the move threshold, otherwise e.g. copying regions to
|
||||
** the same temporal position on a different track doesn't work.
|
||||
*/
|
||||
if (drag_info.item_type == RegionItem) {
|
||||
RegionView* rv = reinterpret_cast<RegionView *> (drag_info.data);
|
||||
if (drag_info.last_trackview != &rv->get_time_axis_view()) {
|
||||
drag_info.move_threshold_passed = true;
|
||||
}
|
||||
}
|
||||
|
||||
// and change the initial grab loc/frame if this drag info wants us to
|
||||
|
||||
if (drag_info.want_move_threshold && drag_info.move_threshold_passed) {
|
||||
|
Loading…
Reference in New Issue
Block a user