summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-08-12 11:40:44 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-08-12 11:40:44 +0200
commit95a40255cdf9a87c98c210e2a7af4f1035e0f54f (patch)
tree127657c1da2d7b8edc34c316eb7ac96952b10412 /src/webview.cpp
parentMerge commit 'refs/merge-requests/164' of git://gitorious.org/rekonq/mainline... (diff)
parentFix smooth scrolling for some sites (eg: gmail) (diff)
downloadrekonq-95a40255cdf9a87c98c210e2a7af4f1035e0f54f.tar.xz
Merge commit 'refs/merge-requests/165' of git://gitorious.org/rekonq/mainline
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index 5a7cfeac..441225af 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -677,9 +677,9 @@ void WebView::scrollTick()
}
if (_scrollBottom)
- page()->mainFrame()->setScrollPosition( QPoint( 0, page()->mainFrame()->scrollPosition().y() + scroll_y ) );
+ page()->currentFrame()->scroll(0, scroll_y);
else
- page()->mainFrame()->setScrollPosition( QPoint( 0, page()->mainFrame()->scrollPosition().y() - scroll_y ) );
+ page()->currentFrame()->scroll(0, -scroll_y);
}