mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 07:27:44 +01:00
Some cleanups to ruler drags.
git-svn-id: svn://localhost/ardour2/branches/3.0@5185 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
3f261ac90c
commit
b192de88b6
4 changed files with 38 additions and 125 deletions
|
|
@ -602,6 +602,8 @@ Editor::autoscroll_canvas ()
|
|||
double new_pixel;
|
||||
double target_pixel;
|
||||
|
||||
assert (_drag);
|
||||
|
||||
if (autoscroll_x_distance != 0) {
|
||||
if (autoscroll_x > 0) {
|
||||
autoscroll_x_distance = (unit_to_frame (_drag->current_pointer_x()) - (leftmost_frame + current_page_frames())) / 3;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue