Add option to disable autoscroll of editor (#4721).
git-svn-id: svn://localhost/ardour2/branches/3.0@12744 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1150,6 +1150,14 @@ RCOptionEditor::RCOptionEditor ()
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_name_new_markers)
|
||||
));
|
||||
|
||||
add_option (_("Editor"),
|
||||
new BoolOption (
|
||||
"autoscroll-editor",
|
||||
_("Auto-scroll editor window when dragging near its edges"),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::get_autoscroll_editor),
|
||||
sigc::mem_fun (*_rc_config, &RCConfiguration::set_autoscroll_editor)
|
||||
));
|
||||
|
||||
/* AUDIO */
|
||||
|
||||
add_option (_("Audio"), new OptionEditorHeading (_("Buffering")));
|
||||
|
||||
@@ -76,6 +76,7 @@ CONFIG_VARIABLE (std::string, keyboard_layout_name, "keyboard-layout-name", "ans
|
||||
CONFIG_VARIABLE (bool, automation_follows_regions, "automation-follows-regions", true)
|
||||
CONFIG_VARIABLE (bool, region_boundaries_from_selected_tracks, "region-boundaries-from-selected-tracks", true)
|
||||
CONFIG_VARIABLE (bool, region_boundaries_from_onscreen_tracks, "region-boundaries-from-onscreen_tracks", true)
|
||||
CONFIG_VARIABLE (bool, autoscroll_editor, "autoscroll-editor", true)
|
||||
|
||||
/* monitoring, mute, solo etc */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user