diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2017-08-26 22:44:48 -0500 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2017-08-26 22:44:58 -0500 |
commit | 1c145ccfc37e0a16bf959de388ff098ca5f8f499 (patch) | |
tree | d2b6f368742e39b7d25bb9bc95e4003fe679b4c4 /gtk2_ardour/editor_ops.cc | |
parent | 49765f8897784d83564c8301ed1ffe82d6bdab92 (diff) |
Editor zooming: Config preference to define how much zooming will be easily allowed beyond the session_ui_extents()
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r-- | gtk2_ardour/editor_ops.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index a0370d0d7e..f8c7a9c546 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -1790,11 +1790,11 @@ Editor::temporal_zoom_step_scale (bool zoom_out, double scale) } //zoom-behavior-tweaks - //limit our maximum zoom to the session gui extents value (+10%) + //limit our maximum zoom to the session gui extents value std::pair<framepos_t, framepos_t> ext = session_gui_extents(); framecnt_t session_extents_pp = ( ext.second - ext.first ) / _visible_canvas_width; - if (nspp > session_extents_pp * 1.1) - nspp = session_extents_pp * 1.1; + if (nspp > session_extents_pp) + nspp = session_extents_pp; temporal_zoom (nspp); } |