You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 25, 2023. It is now read-only.
Run command "synclient -l " , it shows that (part of the result):
LeftEdge = 1132
RightEdge = 5690
TopEdge = 919
BottomEdge = 4888
This means the synclient believes that my touchpad is 5690-1132=4558 wide, and 4880-919=3961 high.
So the xswipe believe that the ratio of width:height=4558:3961=1.15.
However, I used a ruler to physically measure my touchpad. The ruler shows that my touchpad is actually 8.2cm wide and 4.8cm high. The ratio of width:height is actually 8.2:4.8=1.7.
So the xswipe make a mistake in judging your swipe gesture is vertical or horizontal.
In my example, the xSwipe is more likely to take some horizontal gesture as vertical gestures. So I change the code of getAxis
" if($xDist > $yDist)"
to
" if(1.5*$xDist > $yDist)"
Now, it's much better. Maybe some parameters can be added, such as width, height , to solve this problem.