Bug 90255 - Enable tapping to end drag
Summary: Enable tapping to end drag
Status: RESOLVED FIXED
Alias: None
Product: Wayland
Classification: Unclassified
Component: libinput (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Wayland bug list
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 90172
Blocks:
  Show dependency treegraph
 
Reported: 2015-04-30 10:52 UTC by Velimir Lisec
Modified: 2015-05-18 04:48 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Patch that enables the user to end the drag by tapping (3.50 KB, text/plain)
2015-04-30 10:52 UTC, Velimir Lisec
Details
Test cases for ending drag with a tap (5.07 KB, patch)
2015-05-05 10:46 UTC, Velimir Lisec
Details | Splinter Review
Test cases for ending drag with a tap (5.04 KB, text/plain)
2015-05-05 10:57 UTC, Velimir Lisec
Details
Updated state diagram (111.16 KB, text/plain)
2015-05-06 04:25 UTC, Peter Hutterer
Details
Test cases for ending drag with a tap (9.05 KB, patch)
2015-05-06 06:51 UTC, Velimir Lisec
Details | Splinter Review

Description Velimir Lisec 2015-04-30 10:52:09 UTC
Created attachment 115472 [details]
Patch that enables the user to end the drag by tapping

Currently for the drag to end user has to wait for a timeout to expire. Make it possible to just tap on a touchpad when you want drag to finish. I'm attaching a patch for this.
Comment 1 Peter Hutterer 2015-05-01 06:57:36 UTC
nice, looks correct. I'll do the changes to the diagram when I get to it. Any chance you can add a few test cases for this too?

test/touchpad.c, you should be able to use the various tap_n_drag cases as baseline. (don't modify them, just use them as a guide)
Comment 2 Velimir Lisec 2015-05-05 10:46:55 UTC
Created attachment 115541 [details] [review]
Test cases for ending drag with a tap
Comment 3 Velimir Lisec 2015-05-05 10:57:27 UTC
Created attachment 115542 [details]
Test cases for ending drag with a tap

Sorry, second test case in the last patch isn't good, here is the fixed one.
Comment 4 Peter Hutterer 2015-05-06 04:25:15 UTC
Created attachment 115572 [details]
Updated state diagram
Comment 5 Peter Hutterer 2015-05-06 04:28:14 UTC
Updated the state diagram, that works out fine. any chance you can add the 'click' test too? i.e. a click before the very last touch up.
Comment 6 Velimir Lisec 2015-05-06 06:51:51 UTC
Created attachment 115575 [details] [review]
Test cases for ending drag with a tap

I didn't know how to call the click test's, so I just add "click" after "tap" to the name. I hope that is OK.
Comment 7 Peter Hutterer 2015-05-06 07:14:16 UTC
all good, thanks. there's another patch set on the list atm that will partially conflict with this set but just take that as general FYI. I'll probably merge yours as-is first and then change it when the other one is merged. see
http://lists.freedesktop.org/archives/wayland-devel/2015-May/021801.html
Comment 8 Peter Hutterer 2015-05-06 07:19:41 UTC
can you double-check the test-touchpad test please, it seems to fail here consistently.
touchpad_1fg_multitap_n_drag_tap_click and touchpad_1fg_tap_n_drag_tap_click are the two that fail
Comment 9 Peter Hutterer 2015-05-06 07:35:24 UTC
nevermind, found it. one more button event was expected, I squashed that in.

http://lists.freedesktop.org/archives/wayland-devel/2015-May/021805.html
http://lists.freedesktop.org/archives/wayland-devel/2015-May/021806.html
Comment 10 Peter Hutterer 2015-05-18 04:48:48 UTC
Merged as 46171fbef381fbecec673fa870fafb3ce33e58d3, thanks for all the work.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.