diff options
author | Carl Hetherington <carl@carlh.net> | 2012-06-17 12:38:59 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-06-17 12:38:59 +0000 |
commit | 2e71cb2e26371b41f0715c8d659218afa742dd33 (patch) | |
tree | 13edd729c14171fc7434534d23e7a5eed3f6b2a9 /gtk2_ardour/editor_canvas.cc | |
parent | 0c714fe3de350d2aed77f445d718e95ba9065b57 (diff) |
Add option to disable autoscroll of editor (#4721).
git-svn-id: svn://localhost/ardour2/branches/3.0@12744 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_canvas.cc')
-rw-r--r-- | gtk2_ardour/editor_canvas.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_canvas.cc b/gtk2_ardour/editor_canvas.cc index 9e43fcc35c..3e7aad2a1b 100644 --- a/gtk2_ardour/editor_canvas.cc +++ b/gtk2_ardour/editor_canvas.cc @@ -501,6 +501,10 @@ Editor::autoscroll_fudge_threshold () const void Editor::maybe_autoscroll (bool allow_horiz, bool allow_vert, bool moving_left, bool moving_up) { + if (!Config->get_autoscroll_editor ()) { + return; + } + bool startit = false; /* Work out the distance between the right hand edge of the trackview and the edge of |