summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/webview.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index 4fcf5417..0c06a4f8 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -407,7 +407,10 @@ void WebView::mousePressEvent(QMouseEvent *event)
break;
case Qt::MidButton:
- if (m_canEnableAutoScroll && !m_isAutoScrollEnabled)
+ if (m_canEnableAutoScroll
+ && !m_isAutoScrollEnabled
+ && !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();