Skip to content

Commit

Permalink
Fix MIDI actions not being added on the rightmost edge in the Action …
Browse files Browse the repository at this point in the history
…Editor (#716)
  • Loading branch information
gvnnz committed Dec 1, 2024
1 parent 090b4e9 commit 653ab98
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/gui/elems/actionEditor/baseActionEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,7 @@ int geBaseActionEditor::push()
if (Fl::event_button1()) // Left button
{
if (m_action == nullptr) // No action under cursor: add a new one
{
if (Fl::event_x() < m_base->loopWidth) // Avoid click on grey area
onAddAction();
}
onAddAction();
else // Prepare for dragging
m_action->pick = Fl::event_x() - m_action->x();
}
Expand Down

0 comments on commit 653ab98

Please sign in to comment.