mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 04:39:33 +01:00
fix reversed direction of MIDI note drag preview
git-svn-id: svn://localhost/ardour2/branches/3.0@7796 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
4400489f15
commit
0ed7a99dd5
1 changed files with 2 additions and 2 deletions
|
|
@ -3699,7 +3699,7 @@ NoteDrag::total_dy () const
|
|||
}
|
||||
}
|
||||
|
||||
return ndy;
|
||||
return -ndy; /* larger = higher, which is the inverse of the X-centric geometric universe */
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -3708,7 +3708,7 @@ NoteDrag::motion (GdkEvent *, bool)
|
|||
{
|
||||
/* Total change in x and y since the start of the drag */
|
||||
frameoffset_t const dx = total_dx ();
|
||||
int8_t const dy = total_dy ();
|
||||
int8_t const dy = -total_dy ();
|
||||
|
||||
/* Now work out what we have to do to the note canvas items to set this new drag delta */
|
||||
double const tdx = _editor->frame_to_unit (dx) - _cumulative_dx;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue