diff options
author | nick_m <mainsbridge@gmail.com> | 2015-10-28 03:14:10 +1100 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2015-10-28 03:14:10 +1100 |
commit | bf9e752b4d7308c5d6c9f082c3dff2047eaccf8a (patch) | |
tree | 000a96fb6af3c64723e30e4951c039c77ea7d0b0 /gtk2_ardour/automation_line.cc | |
parent | fc8b03eef54da4de254070b44906bb40b3a9f9b7 (diff) |
AutomationLine::drag_motion () returns any clamped fractions correctly.
Diffstat (limited to 'gtk2_ardour/automation_line.cc')
-rw-r--r-- | gtk2_ardour/automation_line.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc index edefa38ac0..b14dac6b35 100644 --- a/gtk2_ardour/automation_line.cc +++ b/gtk2_ardour/automation_line.cc @@ -729,13 +729,13 @@ AutomationLine::drag_motion (double const x, float fraction, bool ignore_x, bool line->set_steps (line_points, is_stepped()); } } - + double const result_frac = _last_drag_fraction + dy; _drag_distance += dx; _drag_x += dx; - _last_drag_fraction = fraction; + _last_drag_fraction = result_frac; did_push = with_push; - return pair<double, float> (_drag_x + dx, fraction); + return pair<double, float> (_drag_x + dx, result_frac); } /** Should be called to indicate the end of a drag */ |