diff options
author | Matt Vogt <matthew.vogt@jollamobile.com> | 2012-11-29 08:35:00 +1000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-29 06:39:10 +0100 |
commit | d02131e743597b9bd3070d986c61a1c91ea8317a (patch) | |
tree | 03f747e256d3c9d86891786aadee79673a509dbe /tests/auto/quick/qquickflickable/data/nestedPressDelay.qml | |
parent | b68d7ab0a52ea9e94a3e62767357e0c735727969 (diff) |
Fix mouse event distribution for Flickable with pressDelay
If an item responds to mouse events but does not accept them, it
can prevent the events from being processed by the correct item
further up the parent chain. For example, a text item inside a
mouse area can wrongly consume a press event, so that the following
release event does not yield a click when processed by the mouse area.
Rather than speculatively assigning the mouse grab to items during
event filter processing, change Flickable to retain the grab for
the duration of the pressDelay and to release it during replay of
the press event.
Change-Id: Ied12b9643838a984c7026978047465c2830e55e4
Reviewed-by: Martin Jones <martin.jones@jollamobile.com>
Diffstat (limited to 'tests/auto/quick/qquickflickable/data/nestedPressDelay.qml')
-rw-r--r-- | tests/auto/quick/qquickflickable/data/nestedPressDelay.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/quick/qquickflickable/data/nestedPressDelay.qml b/tests/auto/quick/qquickflickable/data/nestedPressDelay.qml index 557b7c4117..742656641f 100644 --- a/tests/auto/quick/qquickflickable/data/nestedPressDelay.qml +++ b/tests/auto/quick/qquickflickable/data/nestedPressDelay.qml @@ -7,7 +7,7 @@ Flickable { contentWidth: 480 contentHeight: 320 flickableDirection: Flickable.HorizontalFlick - pressDelay: 50 + pressDelay: 10000 Rectangle { x: 20 y: 20 @@ -20,7 +20,7 @@ Flickable { flickableDirection: Flickable.HorizontalFlick contentWidth: 1480 contentHeight: 400 - pressDelay: 10000 + pressDelay: 50 Rectangle { y: 100 x: 80 |