diff options
| author | fvla <fvla@users.noreply.github.com> | 2026-03-26 17:38:56 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-26 21:38:56 +0000 |
| commit | 2fde538e0fa5663ac99f631fcfee6742e09368f6 (patch) | |
| tree | 148017bdc0364f6557219c5f3d059d9ad823ac29 /src/layout/algorithm/tiled/scrolling/ScrollingAlgorithm.cpp | |
| parent | b0f6ac23b26e62f650d3b26dfb0aa7eb15e29da8 (diff) | |
algo/scrolling: improve behavior with focus_fit_method = center (#13795)
Diffstat (limited to 'src/layout/algorithm/tiled/scrolling/ScrollingAlgorithm.cpp')
| -rw-r--r-- | src/layout/algorithm/tiled/scrolling/ScrollingAlgorithm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<ITarget> target, eInputMode input) { return; static const auto PFITMETHOD = CConfigValue<Hyprlang::INT>("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()); |
