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
remotes/origin/work/aacid/ubuntu_2204_min_base
Eugene Popov 3 years ago committed by Nate Graham
parent f65a2b5f03
commit 40aa5fadb6
  1. 2
      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);
}
}
}

Loading…
Cancel
Save