-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tap-to-drag results in extraneous button clicks #19
Comments
Yes, admittedly the tap to drag functionality isn't perfect. It mostly works for me, but I haven't noticed the behavior you describe. It had to do with the tap to drag timings and their relationship to the other gesture timings. It's on my list of things to work out. |
I'm having the same issue...tap-to-drag just maximizes the window rather than dragging. |
I upgraded my installation to Ubuntu 12.04 x64 and installed the version of mtrack that's in the repositories (xserver-xorg-input-mtrack 0.2.0-2build2), and I can no longer reproduce this issue. Previously, the issue I reported occurred when 0.2 was installed either from dpkg or from source. I can't explain why it works now. |
That's unusual. I'll have to see if someone has submitted a patch for it in Ubuntu. Thanks for the heads up. |
I am having the exact problem cwixon describes in the first post on mint debian edition (based of testing) which uses mtrack 0.2.0-3, apple magic track pad. Changing "TapDragTime" changes the behavior, but lower than default (50=100) makes it so tap to drag never works and higher one (1000) lets me tap real slow to use it, but causes other problems. Want to try latest edition, but autoreconf gives an error. Since that is a separate issue I won't give the details here. otherwise the driver rocks. can't wait for coasting to be implemented |
Tap-to-drag on an Apple Magic Trackpad using mtrack (0.2, Ubuntu Natty/11.04 x64, built from git master cloned on 2011-07-27) appears to result in extraneous button clicks.
When I tap to drag, I get a button1 click (press then release) immediately followed by a drag. This is what my finger does on the trackpad to initiate the drag (fast tap quickly followed by long press with drag), but nonetheless, this isn't correct/expected driver behavior. In Windows, OS X, and the xorg-input-synaptics driver, that first click is suppressed if a drag is initiated properly.
Bad things happen: if I try to tap-and-drag a window by its titlebar, it maximizes and won't drag. If I tap-and-drag to select text in a window, I get the first full word selected (the double-click) then, as I keep my finger down, dragging works as expected.
It's most easily observed using "xinput test [device]" where a drag looks like this:
So the drag is working, but it has that extraneous button press-release first.
There are no timestaps on this, so it's hard to see what's really happening. So I recompiled mtrack with DEBUG_GESTURES defined and ran xev (which includes timestamps) at the same time. The linked files (via pastebin) xev.log and mtrack.log (excerpted from Xorg.0.log) show what happens there.
xev.log: http://pastebin.com/hrBfs1VC
mtrack.log: http://pastebin.com/1njpNTQc
The linked xev.log and mtrack.log files show events from the same sequence of movement, so the timestamps can be correlated. The movements were:
Some pointer movement in the xev window (time=685082.775-685083.437)
a tap-and-drag (time=685085.439-685086.351)
More pointer movement (time=685088.702-685089.244)
another tap-and-drag (time=685092.168-685093.270)
More pointer movement (time=685094.935+)
I removed excess movement messages from the logs, leaving only a few in place around the button presses. I annotated the logs a little bit in square brackets, basically just to show where I removed excess movement messages and to delineate the separate movement sequences listed above.
Finally, below is a dump of "xinput list-props" on the trackpad device, so you can see the current property settings. I have tweaked some of the properties, but the same problem occurs at default settings.
(And maybe it's irrelevant, but why are the mtrack properties showing some synaptics entries? That's weird. There's no trace of synaptics in my Xorg.0.log. Huh.)
This is a great driver, and except for this problem (and the minor annoyance of the "sticky" upward scrolling, issue #18) it's just about perfect. I might submit a feature request or two, though . . .
The text was updated successfully, but these errors were encountered: