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
This commit is contained in:
Eugene Popov 2022-11-13 18:12:25 +00:00 committed by Nate Graham
parent f65a2b5f03
commit 40aa5fadb6

View file

@ -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);
}
}
}