From 2fde538e0fa5663ac99f631fcfee6742e09368f6 Mon Sep 17 00:00:00 2001 From: fvla Date: Thu, 26 Mar 2026 17:38:56 -0400 Subject: algo/scrolling: improve behavior with focus_fit_method = center (#13795) --- src/layout/algorithm/tiled/scrolling/ScrollingAlgorithm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/layout/algorithm/tiled/scrolling/ScrollingAlgorithm.cpp') diff --git a/src/layout/algorithm/tiled/scrolling/ScrollingAlgorithm.cpp b/src/layout/algorithm/tiled/scrolling/ScrollingAlgorithm.cpp index addd371d..93a83045 100644 --- a/src/layout/algorithm/tiled/scrolling/ScrollingAlgorithm.cpp +++ b/src/layout/algorithm/tiled/scrolling/ScrollingAlgorithm.cpp @@ -580,7 +580,7 @@ void CScrollingAlgorithm::focusOnInput(SP target, eInputMode input) { return; static const auto PFITMETHOD = CConfigValue("scrolling:focus_fit_method"); - if (*PFITMETHOD == 1 || input == INPUT_MODE_CLICK) + if (*PFITMETHOD == 1) m_scrollingData->fitCol(TARGETDATA->column.lock()); else m_scrollingData->centerCol(TARGETDATA->column.lock()); -- cgit v1.2.3