Commit 1b4014e2 authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko

Make the scrolling patch adaptive

Only change the deceleration for touchscreens.
parent 8fdd93dc
Pipeline #63267 failed with stages
in 155 minutes and 39 seconds
From: Adrien Plazas <kekun.plazas@laposte.net>
Date: Thu, 4 Jul 2019 09:45:26 +0200
Subject: ScrollAnimationKinetic: Drop the deceleration friction
This makes WebKitGTK more comfortable on touch screens as it avoids to
scroll too much.
---
Source/WebCore/platform/ScrollAnimationKinetic.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Source/WebCore/platform/ScrollAnimationKinetic.cpp b/Source/WebCore/platform/ScrollAnimationKinetic.cpp
index 9a5a89e..7275f12 100644
--- a/Source/WebCore/platform/ScrollAnimationKinetic.cpp
+++ b/Source/WebCore/platform/ScrollAnimationKinetic.cpp
@@ -65,7 +65,7 @@
* f2(x) = t exp(-mx / 2)
*/
-static const double decelFriction = 4;
+static const double decelFriction = 1;
static const double frameRate = 60;
static const Seconds tickTime = 1_s / frameRate;
static const Seconds minimumTimerInterval { 1_ms };
......@@ -14,7 +14,7 @@ This fixes a FTBFS in riscv64
2 files changed, 3 insertions(+)
diff --git a/Source/cmake/OptionsGTK.cmake b/Source/cmake/OptionsGTK.cmake
index 4e26d40..265976f 100644
index dc40653..8918130 100644
--- a/Source/cmake/OptionsGTK.cmake
+++ b/Source/cmake/OptionsGTK.cmake
@@ -33,6 +33,8 @@ if (USER_AGENT_BRANDING)
......
......@@ -6,4 +6,4 @@ prefer-pthread.patch
dont-detect-sse2.patch
reduce-memory-overheads.patch
force-single-process.patch
0009-ScrollAnimationKinetic-Drop-the-deceleration-frictio.patch
0009-Drop-the-scroll-deceleration-friction-for-touchscree.patch
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment