diff options
author | Yoann Laissus <yoann.laissus@gmail.com> | 2010-08-10 12:19:10 +0200 |
---|---|---|
committer | Yoann Laissus <yoann.laissus@gmail.com> | 2010-08-10 12:19:10 +0200 |
commit | 4bf40ac2a07bd68305df486f6558e6dd9d26f9e2 (patch) | |
tree | 45f3202803fcf1c39b81551e4be38af9fd71b2f2 | |
parent | Increase spped (diff) | |
download | rekonq-4bf40ac2a07bd68305df486f6558e6dd9d26f9e2.tar.xz |
Fix the factor
-rw-r--r-- | src/webview.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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); } } |