From 4bf40ac2a07bd68305df486f6558e6dd9d26f9e2 Mon Sep 17 00:00:00 2001 From: Yoann Laissus Date: Tue, 10 Aug 2010 12:19:10 +0200 Subject: Fix the factor --- src/webview.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/webview.cpp b/src/webview.cpp index dfa35dfd..ebf13588 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -560,7 +560,7 @@ void WebView::wheelEvent(QWheelEvent *event) emit zoomChanged((qreal)newFactor / 10); } - else if ( ReKonfig::smoothScrolling() && !this->page()->currentFrame()->hitTestContent(event->pos()).isContentEditable()) + else if ( ReKonfig::smoothScrolling() && !page()->currentFrame()->hitTestContent(event->pos()).isContentEditable()) { int numDegrees = event->delta() / 8; int numSteps = numDegrees / 15; @@ -573,9 +573,8 @@ void WebView::wheelEvent(QWheelEvent *event) else _scrollBottom = true; - setupSmoothScrolling(QApplication::wheelScrollLines() * 33); - return; + setupSmoothScrolling(QApplication::wheelScrollLines() * abs(numSteps) * 20); } } -- cgit v1.2.1