From cb78d5c91ed33543a8e7fe7717f74f95834e4cc3 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Tue, 18 Oct 2016 18:45:49 +0200 Subject: TapHandler: add gesturePolicy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Until now it behaved as if this was set to DragThreshold: give up on the tap as soon as you are clearly dragging rather than tapping. But that's not what is normally wanted when building a Button control, for example. So provide 3 options: give up past the drag threshold, when the pointer goes outside the bounds, or when it's released outside the bounds. The longPressThreshold also constrains all three cases: holding (or dragging) for too long will not result in an immediate cancellation, but it also will not be a tap gesture. Change-Id: I95aec978e783892b55371391a27642751d91d9ff Reviewed-by: Jan Arve Sæther --- tests/manual/pointer/resources/fighter.png | Bin 0 -> 9669 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 tests/manual/pointer/resources/fighter.png (limited to 'tests/manual/pointer/resources/fighter.png') diff --git a/tests/manual/pointer/resources/fighter.png b/tests/manual/pointer/resources/fighter.png new file mode 100644 index 0000000000..2acee43cba Binary files /dev/null and b/tests/manual/pointer/resources/fighter.png differ -- cgit v1.2.3