mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
move twist-tempo drag from tempo ruler to BBT ruler
Behavior remains unchanged, just the location/ruler for the start of the drag.
This commit is contained in:
parent
cd86521c65
commit
c312d570f4
1 changed files with 3 additions and 3 deletions
|
|
@ -831,9 +831,6 @@ Editor::button_press_handler_1 (ArdourCanvas::Item* item, GdkEvent* event, ItemT
|
||||||
if (!Keyboard::modifier_state_equals (event->button.state, Keyboard::PrimaryModifier)
|
if (!Keyboard::modifier_state_equals (event->button.state, Keyboard::PrimaryModifier)
|
||||||
&& !ArdourKeyboard::indicates_constraint (event->button.state)) {
|
&& !ArdourKeyboard::indicates_constraint (event->button.state)) {
|
||||||
_drags->set (new CursorDrag (this, *_playhead_cursor, false), event);
|
_drags->set (new CursorDrag (this, *_playhead_cursor, false), event);
|
||||||
} else if (ArdourKeyboard::indicates_constraint (event->button.state)
|
|
||||||
&& Keyboard::modifier_state_contains (event->button.state, Keyboard::PrimaryModifier)) {
|
|
||||||
_drags->set (new TempoTwistDrag (this, item), event);
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
@ -841,6 +838,9 @@ Editor::button_press_handler_1 (ArdourCanvas::Item* item, GdkEvent* event, ItemT
|
||||||
if (!Keyboard::modifier_state_equals (event->button.state, Keyboard::PrimaryModifier)
|
if (!Keyboard::modifier_state_equals (event->button.state, Keyboard::PrimaryModifier)
|
||||||
&& !ArdourKeyboard::indicates_constraint (event->button.state)) {
|
&& !ArdourKeyboard::indicates_constraint (event->button.state)) {
|
||||||
_drags->set (new CursorDrag (this, *_playhead_cursor, false), event);
|
_drags->set (new CursorDrag (this, *_playhead_cursor, false), event);
|
||||||
|
} else if (ArdourKeyboard::indicates_constraint (event->button.state)
|
||||||
|
&& Keyboard::modifier_state_contains (event->button.state, Keyboard::PrimaryModifier)) {
|
||||||
|
_drags->set (new TempoTwistDrag (this, item), event);
|
||||||
} else if (Keyboard::modifier_state_contains (event->button.state, Keyboard::PrimaryModifier)) {
|
} else if (Keyboard::modifier_state_contains (event->button.state, Keyboard::PrimaryModifier)) {
|
||||||
_drags->set (new BBTRulerDrag (this, item), event);
|
_drags->set (new BBTRulerDrag (this, item), event);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue