diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-04-10 07:31:55 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-04-10 08:24:01 +0000 |
commit | f0eed56490080a6769645f184bb6f13dfe7d23e3 (patch) | |
tree | be4db0e74ef3548e8e684c2c78c2cd91c8e4e4e1 /tests | |
parent | 7368e6bfedbbebbd642cee2be86c0b1c115d9efd (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 'tests')
-rw-r--r-- | tests/auto/controls/data/tst_scrollbar.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/controls/data/tst_scrollbar.qml b/tests/auto/controls/data/tst_scrollbar.qml index b27e92cb..c13bae3d 100644 --- a/tests/auto/controls/data/tst_scrollbar.qml +++ b/tests/auto/controls/data/tst_scrollbar.qml @@ -223,7 +223,7 @@ TestCase { mousePress(control, control.width, control.height, Qt.LeftButton) compare(pressedSpy.count, 3) compare(control.pressed, true) - compare(control.position, 0.5) + compare(control.position, 1.0) mouseMove(control, control.width * 2, control.height * 2, 0) compare(pressedSpy.count, 3) |