aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickscrollbar.cpp
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2017-04-10 07:31:55 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2017-04-10 08:24:01 +0000
commitf0eed56490080a6769645f184bb6f13dfe7d23e3 (patch)
treebe4db0e74ef3548e8e684c2c78c2cd91c8e4e4e1 /src/quicktemplates2/qquickscrollbar.cpp
parent7368e6bfedbbebbd642cee2be86c0b1c115d9efd (diff)
ScrollBar: react immediately when using a mouse
The initial drag threshold is a necessary evil on touch to avoid conflicting with flickables, but leads to bad experience (QTBUG-47081) when using a mouse. Now that we have separate mouse and touch handling, we can apply immediate moves when using a mouse, but keep the old behavior on touch. [ChangeLog][Important Behavior Changes] ScrollBar now reacts immediately when using a mouse. Task-number: QTBUG-58667 Change-Id: I51759fc01dc8b8536834a8a3cca635ff512f7dc9 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickscrollbar.cpp')
-rw-r--r--src/quicktemplates2/qquickscrollbar.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickscrollbar.cpp b/src/quicktemplates2/qquickscrollbar.cpp
index 844bba3a..b0d55dfb 100644
--- a/src/quicktemplates2/qquickscrollbar.cpp
+++ b/src/quicktemplates2/qquickscrollbar.cpp
@@ -596,6 +596,7 @@ void QQuickScrollBar::mousePressEvent(QMouseEvent *event)
Q_D(QQuickScrollBar);
QQuickControl::mousePressEvent(event);
d->handlePress(event->localPos());
+ d->handleMove(event->localPos());
}
void QQuickScrollBar::mouseMoveEvent(QMouseEvent *event)