add explanatory comment

This commit is contained in:
Paul Davis 2021-02-14 16:45:49 -07:00
parent 21e6f1cf50
commit 6536655a0a
1 changed files with 5 additions and 0 deletions

View File

@ -6969,6 +6969,11 @@ NoteCreateDrag::start_grab (GdkEvent* event, Gdk::Cursor* cursor)
/* minimum initial length is grid beats */
_note[1] = _note[0] + grid_beats;
/* the note positions we've just computed are in absolute beats, but
* the drag rect is a member of the region view group, so we need
* coordinates relative to the region in order to draw it correctly.
*/
const timepos_t rrp1 (_region_view->region()->region_relative_position (_note[0]));
const timepos_t rrp2 (_region_view->region()->region_relative_position (_note[1]));