mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
Allow drag of region fade in/out in object mode with link enabled (part of #2983)
git-svn-id: svn://localhost/ardour2/branches/3.0@6555 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
eb6b142c02
commit
10395d2fee
1 changed files with 7 additions and 0 deletions
|
|
@ -616,6 +616,11 @@ Editor::button_press_handler_1 (ArdourCanvas::Item* item, GdkEvent* event, ItemT
|
||||||
|
|
||||||
Editing::MouseMode eff = effective_mouse_mode ();
|
Editing::MouseMode eff = effective_mouse_mode ();
|
||||||
|
|
||||||
|
/* special case: allow drag of region fade in/out in object mode with join object/range enabled */
|
||||||
|
if (item_type == FadeInHandleItem || item_type == FadeOutHandleItem) {
|
||||||
|
eff = MouseObject;
|
||||||
|
}
|
||||||
|
|
||||||
switch (eff) {
|
switch (eff) {
|
||||||
case MouseRange:
|
case MouseRange:
|
||||||
switch (item_type) {
|
switch (item_type) {
|
||||||
|
|
@ -1542,6 +1547,7 @@ Editor::enter_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemType item_
|
||||||
rect->property_fill_color_rgba() = 0;
|
rect->property_fill_color_rgba() = 0;
|
||||||
rect->property_outline_pixels() = 1;
|
rect->property_outline_pixels() = 1;
|
||||||
}
|
}
|
||||||
|
track_canvas->get_window()->set_cursor (*grabber_cursor);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
@ -1676,6 +1682,7 @@ Editor::leave_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemType item_
|
||||||
rect->property_outline_pixels() = 0;
|
rect->property_outline_pixels() = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
track_canvas->get_window()->set_cursor (*current_canvas_cursor);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case AutomationTrackItem:
|
case AutomationTrackItem:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue