Summary:
Since minimum Qt version is 5.9.7, code for older versions is not
needed.
Reviewers: #konsole, hindenburg
Reviewed By: #konsole, hindenburg
Subscribers: hindenburg, konsole-devel
Tags: #konsole
Differential Revision: https://phabricator.kde.org/D17746
If the Libinput X server input driver is used we get a value for
pixelDelta for a physical mouse wheel scroll, so we check that the
source of the wheel event is actually a mouse, this was fixed in
Qt 5.9.5
https://bugreports.qt.io/browse/QTBUG-59261
Patch by ahmadsamir
BUG: 386762
Differential Revision: https://phabricator.kde.org/D9008
While Konsole's main scrollbar is handled by QtScrollBar and therefore
works as expected under Qt5, the other custom scroll wheel actions
available do not accumulate and handle the small scroll deltas provided.
This results in stuttery, uneven and unexpected responses to scrolling.
Accumulate and trigger events on thresholds. If pixel scroll values are
provided, utilize them when emulating mouseup/mousedown events (by
dividing by pixel font height).
Patch by Lindsay Roberts linds r gmail com
REVIEW: 124590