Commit 585340ce authored by Kezi Olio's avatar Kezi Olio Committed by Nate Graham

Fix back/forward navigation after clicking on a link

The condition was incorrect; we were ignoring history when not in the
middle of scrolling when we wanted to do the reverse.

BUG: 414701
FIXED-IN: 20.12
parent d23422d0
Pipeline #39354 passed with stage
in 29 minutes and 10 seconds
......@@ -4562,7 +4562,7 @@ void PageView::slotRequestVisiblePixmaps(int newValue)
newViewport.rePos.normalizedY = focusedY;
// set the viewport to other observers
// do not update history if the viewport is autoscrolling
d->document->setViewportWithHistory(newViewport, this, false, d->scroller->state() == QScroller::Scrolling);
d->document->setViewportWithHistory(newViewport, this, false, d->scroller->state() != QScroller::Scrolling);
}
d->document->setVisiblePageRects(visibleRects, this);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment