13
0

use button.y and modifier state when adding a control point in the midi cue automation lane

This commit is contained in:
Paul Davis 2024-10-09 11:53:15 -06:00
parent 2afdeb519f
commit dfe3c48d0f

View File

@ -313,7 +313,8 @@ MidiCueView::make_merger ()
bool
MidiCueView::automation_rb_click (GdkEvent* event, Temporal::timepos_t const & pos)
{
automation_line->add (automation_control, event, pos, 0.5, true);
bool with_guard_points = Keyboard::modifier_state_equals (event->button.state, Keyboard::PrimaryModifier);
automation_line->add (automation_control, event, pos, event->button.y, with_guard_points);
return false;
}