From c3639bb5c48e44142586f01c89248b54ab0aae58 Mon Sep 17 00:00:00 2001 From: Yoann Laissus Date: Wed, 11 Aug 2010 22:42:56 +0200 Subject: Fix smooth scrolling for some sites (eg: gmail) --- src/webview.cpp | 4 ++-- 1 file 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); } -- cgit v1.2.1