summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYoann Laissus <yoann.laissus@gmail.com>2010-08-11 22:42:56 +0200
committerYoann Laissus <yoann.laissus@gmail.com>2010-08-11 22:42:56 +0200
commitc3639bb5c48e44142586f01c89248b54ab0aae58 (patch)
treeb70e03cc49425e916c9273547fedb05d919826f6 /src
parentFix the factor (diff)
downloadrekonq-c3639bb5c48e44142586f01c89248b54ab0aae58.tar.xz
Fix smooth scrolling for some sites (eg: gmail)
Diffstat (limited to 'src')
-rw-r--r--src/webview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index ebf13588..7fcb3ecb 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);
}