From 1adde22bdab2246aa2c018f573ba97240db5f92b Mon Sep 17 00:00:00 2001 From: Rohan Garg Date: Thu, 6 Jan 2011 19:23:22 +0530 Subject: =?UTF-8?q?Disable=20multi-dimensional=20scroll=20button=20on=20sc?= =?UTF-8?q?rollbars.=20Review=20Board=20task=20:=20http://git.reviewboard.?= =?UTF-8?q?kde.org/r/100276/=20Thanks=20to=20Furkan=20=C3=9Cz=C3=BCmc?= =?UTF-8?q?=C3=BC=20BUG:=20234888?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/webview.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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(); -- cgit v1.2.1