From d8e9716de3d2e96b0793391acedc9f68cac24a47 Mon Sep 17 00:00:00 2001 From: Carmelo Messina Date: Tue, 27 Feb 2024 18:05:59 +0100 Subject: [PATCH] #379 Enable percent based scrolling on Windows --- ...e-percent-based-scrolling-on-Windows.patch | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 build/patches/Enable-percent-based-scrolling-on-Windows.patch diff --git a/build/patches/Enable-percent-based-scrolling-on-Windows.patch b/build/patches/Enable-percent-based-scrolling-on-Windows.patch new file mode 100644 index 00000000..bd7f470c --- /dev/null +++ b/build/patches/Enable-percent-based-scrolling-on-Windows.patch @@ -0,0 +1,27 @@ +From: uazo +Date: Tue, 27 Feb 2024 08:53:37 +0000 +Subject: Enable percent based scrolling on Windows + +mousewheel and keyboard scrolls will scroll by a +percentage of the scroller size and the default scroll +animation is replaced with Impulse-style scroll animations + +License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html +--- + ui/base/ui_base_features.cc | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/ui/base/ui_base_features.cc b/ui/base/ui_base_features.cc +--- a/ui/base/ui_base_features.cc ++++ b/ui/base/ui_base_features.cc +@@ -144,6 +144,9 @@ static_assert(!BUILDFLAG(IS_MAC) || + BASE_FEATURE(kWindowsScrollingPersonality, + "WindowsScrollingPersonality", + kWindowsScrollingPersonalityDefaultStatus); ++#if BUILDFLAG(IS_WIN) ++SET_CROMITE_FEATURE_ENABLED(kWindowsScrollingPersonality); ++#endif + + bool IsPercentBasedScrollingEnabled() { + return base::FeatureList::IsEnabled(features::kWindowsScrollingPersonality); +--