From d7396925232f4eac407fae25e16d027a1bdf6ca3 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Sun, 3 Dec 2017 15:16:41 +0100 Subject: [PATCH] AutoScroll: Don't force detected scroll direction As the detection of available scroll direction is not perfect, don't enforce it. Closes #2503 --- src/plugins/AutoScroll/autoscroller.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/plugins/AutoScroll/autoscroller.cpp b/src/plugins/AutoScroll/autoscroller.cpp index f6342691f..a2ddb25cb 100644 --- a/src/plugins/AutoScroll/autoscroller.cpp +++ b/src/plugins/AutoScroll/autoscroller.cpp @@ -123,13 +123,6 @@ bool AutoScroller::mouseMove(QObject* obj, QMouseEvent* event) ylength = event->globalPos().y() - rect.bottom(); } - if (!m_indicator->orientations().testFlag(Qt::Vertical)) { - ylength = 0; - } - if (!m_indicator->orientations().testFlag(Qt::Horizontal)) { - xlength = 0; - } - m_frameScroller->startScrolling(xlength, ylength); }