AutoScroll: Don't force detected scroll direction

As the detection of available scroll direction is not perfect,
don't enforce it.

Closes #2503
remotes/origin/Falkon/3.0
David Rosca 8 years ago
parent 8c99f22240
commit d739692523
  1. 7
      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);
}

Loading…
Cancel
Save