summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp5
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())