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