Commit 23024d4b authored by Gabriele Mazzotta's avatar Gabriele Mazzotta Committed by Kurt Hindenburg
Browse files

Fix vertical scrolling with touchpads and trackpoints.

In case of diagonal scrolling, which can happen when using touchpads,
'x' is not zero.

BUG: 425765
FIXED-IN: 20.08.2
parent 18cd207c
......@@ -2850,7 +2850,7 @@ void TerminalDisplay::mouseDoubleClickEvent(QMouseEvent* ev)
void TerminalDisplay::wheelEvent(QWheelEvent* ev)
// Only vertical scrolling is supported
if (ev->angleDelta().x() != 0) {
if (qAbs(ev->angleDelta().y()) < qAbs(ev->angleDelta().x())) {
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