very hard to trigger edge-swipes
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 3.1k
- Forks
- 237
- Avg merge
- 1h 43m
- Merged PRs (30d)
- 1
Description
Describe the bug
I'm trying to figure out gestures, and found edge swipes very difficult to trigger.
For an obvious action I was trying this:
[invert]
toggle = edge-swipe left 1
It seems like I have to swipe about 1/4 to 1/3 of the screen width for this to trigger. It's 2560x1600 and a 16" display (ASUS Flow X16), so it's a long distance. My success rate triggering the gesture is maybe ~80% of the time. But sometimes I'm trying to do it and it takes me 4-5 times to get it, maybe needing to practice finding the right speed and distance and initial position right on or near the bezel. In contrast, in Windows 11 on the same screen the edge swipe isn't this hard and is like 100% success rate.
Changing [input] gesture_sensitivity = 5.0 I don't notice a difference and still have to drag the same long distance to trigger.
edge-swipe left 2 is even harder, definitely less than 50% success trying to do swipes like that.
It wouldn't surprise me for this to be hardware specific, so I can try to mess with some things. The code in this patch seems like the place to look https://github.com/WayfireWM/wayfire/pull/802
To Reproduce
Steps to reproduce the behavior:
- Enable plugin invert and set toggle = edge-swipe 1
- Try swiping left from the right side of the screen with 1 finger
- Note how far you must drag your finger, and note success rate of triggering the gesture
Expected behavior
Thinking like 1-2 inches would be ideal for swipe distance. Also maybe some wiggle room for start position so it's forgiving if not exactly starting on the outermost pixel. It should be as easy as the windows 11 edge swipe.
Wayfire version
wayfire-git 0.7.5.r692
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the gesture code in the Wayfire PR #802 linked in the issue, then reproduce the behavior with the [input] and [invert] configuration described here. Done means the one-finger edge swipe is reliably recognized with a shorter drag and less exact edge positioning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100