diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-01-20 21:22:48 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-01-22 10:53:59 +0100 |
commit | 243466641c57903de3e34edb114ebe9fc8720e20 (patch) | |
tree | 62ec9412877e82c700b1b83a651d17bcf735cb90 /src/webview.cpp | |
parent | adjust to INSTALLed permissions (diff) | |
download | rekonq-243466641c57903de3e34edb114ebe9fc8720e20.tar.xz |
m_mousePos--
Diffstat (limited to 'src/webview.cpp')
-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 fffa5679..e0e403c0 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -65,7 +65,6 @@ WebView::WebView(QWidget* parent) : KWebView(parent, false) - , m_mousePos(QPoint(0, 0)) , m_autoScrollTimer(new QTimer(this)) , m_vScrollSpeed(0) , m_hScrollSpeed(0) @@ -454,11 +453,11 @@ void WebView::mousePressEvent(QMouseEvent *event) void WebView::mouseMoveEvent(QMouseEvent *event) { - m_mousePos = event->pos(); + QPoint mousePos = event->pos(); if (m_isViewAutoScrolling) { - QPoint r = m_mousePos - m_clickPos; + QPoint r = mousePos - m_clickPos; m_hScrollSpeed = r.x() / 2; // you are too fast.. m_vScrollSpeed = r.y() / 2; if (!m_autoScrollTimer->isActive()) |