mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-08 14:45:43 +01:00
Fix reversed ratio in last commit.
This commit is contained in:
parent
36dd7f8d9d
commit
73328172d6
1 changed files with 1 additions and 1 deletions
|
|
@ -4334,7 +4334,7 @@ LineDrag::start_grab (GdkEvent* event, Gdk::Cursor* /*cursor*/)
|
|||
/* store grab start in parent frame */
|
||||
double const bx = _line->nth (_before)->get_x();
|
||||
double const ax = _line->nth (_after)->get_x();
|
||||
double const click_ratio = (mx - bx) / (ax - bx);
|
||||
double const click_ratio = (ax - mx) / (ax - bx);
|
||||
|
||||
double const cy = ((_line->nth (_before)->get_y() * click_ratio) + (_line->nth (_after)->get_y() * (1 - click_ratio)));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue