mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
Prevent region drags with the middle button in internal edit mode (#3869).
git-svn-id: svn://localhost/ardour2/branches/3.0@9199 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
7665af74a5
commit
ad942b104a
1 changed files with 5 additions and 0 deletions
|
|
@ -1049,6 +1049,11 @@ Editor::button_press_handler_2 (ArdourCanvas::Item* item, GdkEvent* event, ItemT
|
||||||
case MouseObject:
|
case MouseObject:
|
||||||
switch (item_type) {
|
switch (item_type) {
|
||||||
case RegionItem:
|
case RegionItem:
|
||||||
|
if (internal_editing ()) {
|
||||||
|
/* no region drags in internal edit mode */
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (Keyboard::modifier_state_contains (event->button.state, Keyboard::CopyModifier)) {
|
if (Keyboard::modifier_state_contains (event->button.state, Keyboard::CopyModifier)) {
|
||||||
add_region_copy_drag (item, event, clicked_regionview);
|
add_region_copy_drag (item, event, clicked_regionview);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue