Do not disable flick if cursor has been wrapped

BUG: 420556
FIXED-IN: 1.11.3
This commit is contained in:
David Hurka 2020-10-30 15:00:56 +01:00
parent 02c3bd691a
commit 08c4d4f712

View file

@ -2359,10 +2359,6 @@ void PageView::mouseReleaseEvent(QMouseEvent *e)
case Okular::Settings::EnumMouseMode::Browse: {
d->scroller->handleInput(QScroller::InputRelease, e->pos() + d->mouseGrabOffset, e->timestamp());
// disable flick if the cursor has wrapped around
if (d->mouseGrabOffset != QPoint(0, 0))
d->scroller->stop();
// return the cursor to its normal state after dragging
if (cursor().shape() == Qt::ClosedHandCursor)
updateCursor(eventPos);