summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/webview.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index 0c06a4f8..49fa1032 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -412,9 +412,13 @@ void WebView::mousePressEvent(QMouseEvent *event)
&& !page()->currentFrame()->scrollBarGeometry(Qt::Horizontal).contains(event->pos())
&& !page()->currentFrame()->scrollBarGeometry(Qt::Vertical).contains(event->pos()))
{
- setCursor(KIcon("transform-move").pixmap(32));
- m_clickPos = event->pos();
- m_isAutoScrollEnabled = true;
+ if (!page()->currentFrame()->scrollBarGeometry(Qt::Horizontal).isNull()
+ || !page()->currentFrame()->scrollBarGeometry(Qt::Vertical).isNull())
+ {
+ setCursor(KIcon("transform-move").pixmap(32));
+ m_clickPos = event->pos();
+ m_isAutoScrollEnabled = true;
+ }
}
break;