Closed OmarShawky1 closed 1 year ago
Thank you for reporting the issue. I also feel that the behavior of the 4-finger pinch is a bit strange on my end. I think it's probably an issue with the internal threshold calculation. I confirmed that it triggers with 3 fingers. Does the pinch operation work if you configure it as a 3-finger pinch?
Please try lowering threshold in 4-finger pinch. It works around 0.5 in my environment(Ubuntu 22.04/x11/XPS 9130). Also, it seems that fusuma recognizes pinch in and pinch out in reverse :sweat_smile:
pinch:
4:
in:
command: "xdotool key 0xffe9+0xffc1"
threshold: 0.5
The pinch direction reversing operation was fixed in https://github.com/iberianpig/fusuma/commit/aa46ae1a86efcbc265c3a43c4c73fba445b4ca81
Please try lowering threshold in 4-finger pinch. It works around 0.5 in my environment(Ubuntu 22.04/x11/XPS 9130). Also, it seems that fusuma recognizes pinch in and pinch out in reverse sweat_smile
pinch: 4: in: command: "xdotool key 0xffe9+0xffc1" threshold: 0.5
Yes, It worked when I used the threshold you requested, thank you so much.
Yet, I don't understand why?
The base value of the threshold for pinch gesture should be changed according to the number of fingers, maybe. The reason is because the distance of finger movement is shorter for 4-finger pinch gesture than 2-finger pinch gesture.
Describe the bug Pinch not working on elementaryOS 6.0
Expected behavior Pinch in using 4 fingers should press "Alt_L + F4" to close window. That doesn't happen although fusuma detects 4 fingers successfully.
D, [2023-03-19T16:27:16.296841 #14472] DEBUG -- : {:input_event=>time: 2023-03-19 16:27:16 +0200, tag: libinput_command_input, record: event5 GESTURE_PINCH_END +15.661s 4}
Versions
Configuration