From 40aa5fadb62cd5036af16c1afc7f307ad4c2ac42 Mon Sep 17 00:00:00 2001 From: Eugene Popov Date: Sun, 13 Nov 2022 18:12:25 +0000 Subject: [PATCH] Increase scrolling speed with the touchpad Currently, scrolling through a document using the touchpad is quite slow compared to scrolling through the standard Qt controls. This MR increases the speed of scrolling with the touchpad by removing the "magic" divider. CCBUG: 455014 --- part/pageview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/part/pageview.cpp b/part/pageview.cpp index f61882e2e..d6680a582 100644 --- a/part/pageview.cpp +++ b/part/pageview.cpp @@ -3300,7 +3300,7 @@ void PageView::wheelEvent(QWheelEvent *e) slotScrollUp(count); } } else { - d->scroller->scrollTo(d->scroller->finalPosition() - e->angleDelta() * multiplier / 4.0, 0); + d->scroller->scrollTo(d->scroller->finalPosition() - e->angleDelta() * multiplier, 0); } } }