summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRohan Garg <rohangarg@kubuntu.org>2011-01-06 19:23:22 +0530
committerRohan Garg <rohangarg@kubuntu.org>2011-01-06 19:23:22 +0530
commit1adde22bdab2246aa2c018f573ba97240db5f92b (patch)
tree33e7120593860b6e1b667bd58d56124c9ac32622
parentHorizontal scroll wheel may now be used to navigate through history (Disabled... (diff)
downloadrekonq-1adde22bdab2246aa2c018f573ba97240db5f92b.tar.xz
Disable multi-dimensional scroll button on scrollbars.
Review Board task : http://git.reviewboard.kde.org/r/100276/ Thanks to Furkan Üzümcü BUG: 234888
-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();