summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoann Laissus <yoann.laissus@gmail.com>2010-08-10 12:19:10 +0200
committerYoann Laissus <yoann.laissus@gmail.com>2010-08-10 12:19:10 +0200
commit4bf40ac2a07bd68305df486f6558e6dd9d26f9e2 (patch)
tree45f3202803fcf1c39b81551e4be38af9fd71b2f2
parentIncrease spped (diff)
downloadrekonq-4bf40ac2a07bd68305df486f6558e6dd9d26f9e2.tar.xz
Fix the factor
-rw-r--r--src/webview.cpp5
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);
}
}