From 1c145ccfc37e0a16bf959de388ff098ca5f8f499 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Sat, 26 Aug 2017 22:44:48 -0500 Subject: Editor zooming: Config preference to define how much zooming will be easily allowed beyond the session_ui_extents() --- gtk2_ardour/editor_ops.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gtk2_ardour/editor_ops.cc') 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 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); } -- cgit v1.2.3