Commit 061e8a1e authored by Laurent Montel's avatar Laurent Montel 😁

Fix typo

parent 1b89af74
......@@ -128,7 +128,7 @@ QString WebEngineScript::scrollPercentage(int percent)
const QString source = QString::fromLatin1("var current = document.body.scrollTop;"
"var height = document.height;"
"var newPosition = current + height * %1 / 100;"
"window.scrollTo(window.scrollX, newPostion); [window.scrollX, window.scrollY];").arg(percent);
"window.scrollTo(window.scrollX, newPosition); [window.scrollX, window.scrollY];").arg(percent);
#if 0
const qint64 height = page()->viewportSize().height();
const qint64 current = page()->mainFrame()->scrollBarValue(Qt::Vertical);
......
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