mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
Do not disable flick if cursor has been wrapped
BUG: 420556 FIXED-IN: 1.11.3
This commit is contained in:
parent
02c3bd691a
commit
08c4d4f712
1 changed files with 0 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue