fix placement (snap) of percussive-mode drawn notes (#9041)

This commit is contained in:
Paul Davis
2022-10-27 08:31:44 -06:00
parent 04131077b3
commit a3d3fb9c14

View File

@@ -6850,7 +6850,7 @@ HitCreateDrag::finished (GdkEvent* event, bool had_movement)
}
timepos_t snapped (beats);
_editor->snap_to (snapped, RoundDownMaybe, SnapToGrid_Scaled);
_editor->snap_to (snapped, RoundNearest, SnapToGrid_Scaled);
const timepos_t region_offset (snapped.beats() - _region_view->region()->position ().beats());
/* This code is like MidiRegionView::get_draw_length_beats() but