note create drag: tweak to fix dragging when snap is not bars

This commit is contained in:
Paul Davis 2022-12-19 12:17:36 -07:00
parent 615aff92d7
commit 90ae38e353

View File

@ -6749,7 +6749,7 @@ NoteCreateDrag::motion (GdkEvent* event, bool)
//when the user clicks and starts a drag to define the note's length, require notes to be at least |this| long
const Temporal::Beats min_length (_region_view->get_draw_length_beats (pos));
Temporal::Beats aligned_beats = round_to_grid (pos, event);
_note[1] = std::max (aligned_beats, (pos.beats() + min_length));
_note[1] = std::max (aligned_beats, (_note[0].beats() + min_length));
const timecnt_t rrp1 (_region_view->region()->region_relative_position (_note[0]));
const timecnt_t rrp2 (_region_view->region()->region_relative_position (_note[1]));