xf86-input-mtrack icon indicating copy to clipboard operation
xf86-input-mtrack copied to clipboard

Support for 3-Finger Drag?

Open rb3 opened this issue 9 years ago • 10 comments

Will there be support for 3-finger drag? I would really like to replicate the touchpad gestures on OS X. Thanks for this awesome project BTW! :)

rb3 avatar Jun 18 '15 15:06 rb3

+1

coxley avatar Jul 13 '15 01:07 coxley

What you mean by 3 finger drag? How does is differ from one finger drag?

p2rkw avatar Jul 15 '15 15:07 p2rkw

Three fingers gesture in OS X begins click-hold, makes it convenient with no need to tap and such.

coxley avatar Jul 15 '15 17:07 coxley

Sound like something easy to add, especially on top of my recent changes, but what about swipes with 3 fingers? Does osx support them somehow? Is it able to recognize swipes and 3-finger dragging?

p2rkw avatar Jul 15 '15 18:07 p2rkw

Yeah, this shows some of the default swipe gestures OS X uses: https://support.apple.com/en-us/HT204895

This is three finger drag: https://support.apple.com/en-us/HT204609

Not sure if that answers your questions?

coxley avatar Jul 15 '15 20:07 coxley

Done. To test it build branch swipe-to-drag from here: https://github.com/p2rkw/xf86-input-mtrack/tree/swipe_to_drag

See bottom of readme for instructions how to enable it.

p2rkw avatar Jul 16 '15 23:07 p2rkw

Nice! Seems to work as you'd expect, at least for the 5 minute impression. :)

coxley avatar Jul 17 '15 01:07 coxley

Let me give you a tip: using swipe3 for button "1" drag is such a waste ;) Firstly: it duplicates tap-to-drag functionality (unless someone will make tap-to-drag button configurable :) ) Secondly: mtrack can be easily configured to work with easystroke: configure swipe-2-drag as usual but instead of button 1 use eg. button 8:

        Option "SwipeDistance" "1"
        Option "SwipeLeftButton" "8"
        Option "SwipeRightButton" "8"
        Option "SwipeUpButton" "8"
        Option "SwipeDownButton" "8"
        Option "SwipeClickTime" "0"
        Option "SwipeSensitivity" "1100"

or same thing using xinput:

xinput set-prop 11 "Trackpad Swipe Buttons"  8 8 8 8
xinput set-prop 11 "Trackpad Swipe Settings" 1, 0, 1100

Just replace "11" with your touchpad id.

Next run easystroke, go to settings tab, and set gesture button to 8 (without modifiers). Now every time you swipe with 3 fingers easystroke will recognize it as gesture :D

You can additionally configure Swipe4 or Scroll swipes to send button 1 events, so for example you can use Swipe in conjunction with easystroke and Scroll or Swipe4 (two or four finger swipes) for text selection.

[1] https://github.com/thjaeger/easystroke/wiki

p2rkw avatar Jul 18 '15 12:07 p2rkw

Hi! Was this merged into master by chance?

akatrevorjay avatar May 08 '16 11:05 akatrevorjay

Hi! Is working this feature on xserver-xorg-input-mtrack version (0.3.1-1build2)? I implemented what do you recommend at the bottom on the old readme.md but only have a multiples primary clicks when I start to drag windows from the tittle bars using 3 fingers doesnt work and just maximize or minimize the window. Or when you try to select texts, selecte the entire line, is like a fast doble click

About my configuration: OS: Ubuntu 18.04 Trackpad: Apple Magic Trackpad xserver-xorg-input-mtrack version (0.3.1-1build2)

etc/X11/xorg.conf.d/m-track.conf

Section "InputClass"
	MatchIsTouchpad "true"
	Identifier "Touchpads"
	Driver "mtrack"
        Option          "Sensitivity" "0.60"
        Option          "FingerHigh" "5"
        Option          "FingerLow" "1"
        Option          "IgnoreThumb" "false"
        Option          "ThumbRatio" "70"
        Option          "ThumbSize" "25"
        Option          "IgnorePalm" "false"
        Option          "TapButton1" "1"
        Option          "TapButton2" "3"
        Option          "TapButton3" "2"
        Option          "TapButton4" "0"
        Option          "ClickFinger1" "1"
        Option          "ClickFinger2" "2"
        Option          "ClickFinger3" "3"
        Option          "ButtonMoveEmulate" "false"
        Option          "ButtonIntegrated" "true"
        Option          "ClickTime" "25"
        Option          "BottomEdge" "30"
	Option 		"SwipeDistance" "1"
	Option 		"SwipeLeftButton" "8"
	Option 		"SwipeRightButton" "8"
	Option 		"SwipeUpButton" "8"
	Option 		"SwipeDownButton" "8"
	Option 		"SwipeClickTime" "0"
	Option 		"SwipeSensitivity" "1100"
        Option          "ScrollCoastDuration" "500"
        Option          "ScrollCoastEnableSpeed" ".3"
        Option          "ScrollUpButton" "5"
        Option          "ScrollDownButton" "4"
        Option          "ScrollLeftButton" "7"
        Option          "ScrollRightButton" "6"
        Option          "ScrollDistance" "100"
        Option          "ScrollSensitivy" "0"
        Option          "ButtonZonesEnable" "true"
EndSection


Anyway, thanks for your work!

hernanBeiza avatar Nov 10 '18 05:11 hernanBeiza