Re: libinput: Disable tap-and-drag

2016-01-11 Thread Bill Spitzak
The timeout can be avoided by sending tap+drag as press/release/(wait)/press/drag. I don't have it here to test but I remember hearing this is what some (all?) mac implementations do. This requires libinput to also decide whether a click is a "double click" or not, the fact that our software was d

Re: libinput: Disable tap-and-drag

2016-01-08 Thread Cyril B.
Peter Hutterer wrote: thanks for doing this work. tbh, I'm not a big fan of having this as a configuration option. IMO if you are using tapping as an interaction method on the touchpad, having tap-and-drag available is the natural extension and I don't see why we should disable it. I have the s

Re: libinput: Disable tap-and-drag

2016-01-05 Thread Peter Hutterer
On Wed, Jan 06, 2016 at 05:28:30AM +, Caibin Chen wrote: > Peter Hutterer 于2016年1月4日周一 下午8:44写道: > > > the timeout is currently 300ms. Maybe we can reduce the timeout to provide > > a > > middle ground? > > > Worth a try, but we should seprate tap-and-drag timeout with drag-lock > timeout. 300

Re: libinput: Disable tap-and-drag

2016-01-05 Thread Caibin Chen
Peter Hutterer 于2016年1月4日周一 下午8:44写道: > the timeout is currently 300ms. Maybe we can reduce the timeout to provide > a > middle ground? > Worth a try, but we should seprate tap-and-drag timeout with drag-lock timeout. 300ms is sometime too short for me.

Re: libinput: Disable tap-and-drag

2016-01-04 Thread Peter Hutterer
On Tue, Jan 05, 2016 at 12:05:17AM +, Caibin Chen wrote: > The reason why it's annoying to me is that often time I tap something and > move the cursor immediately. For example closing a browser tab then move > back to the content. This triggers tap-and-drag unexpectedly. the timeout is current

Re: libinput: Disable tap-and-drag

2016-01-04 Thread Caibin Chen
The reason why it's annoying to me is that often time I tap something and move the cursor immediately. For example closing a browser tab then move back to the content. This triggers tap-and-drag unexpectedly. As of dragging without clicking the touchpad, I have a WIP branch adding three-finger-to-

Re: libinput: Disable tap-and-drag

2016-01-03 Thread Peter Hutterer
On Sat, Jan 02, 2016 at 04:02:29AM +, Caibin Chen wrote: > Hi, > > I've been working on disabling tap-and-drag feature in libinput because I'm > not used to it. The code is on my Github branch: > https://github.com/tigersoldier/libinput/tree/wip/disable-tap-to-drag > > The basic idea is addin

libinput: Disable tap-and-drag

2016-01-01 Thread Caibin Chen
Hi, I've been working on disabling tap-and-drag feature in libinput because I'm not used to it. The code is on my Github branch: https://github.com/tigersoldier/libinput/tree/wip/disable-tap-to-drag The basic idea is adding a branch at STATE_TOUCHED + EVENT_RELEASE transition: STATE_TOUCHED