Commit 91128ad1 authored by Laurent Montel's avatar Laurent Montel 😁

Don't save position when we forced to -1

parent f2a41d3f
......@@ -245,7 +245,9 @@ void WebEngineView::clearRelativePosition()
void WebEngineView::saveRelativePosition()
{
d->mSavedRelativePosition = page()->scrollPosition().toPoint().y();
if (d->mSavedRelativePosition != -1) {
d->mSavedRelativePosition = page()->scrollPosition().toPoint().y();
}
}
qreal WebEngineView::relativePosition() const
......
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