PaperWM icon indicating copy to clipboard operation
PaperWM copied to clipboard

[Feature request] Touch gestures for scrolling through workspace?

Open Thesola10 opened this issue 4 years ago • 2 comments

First off, awesome extension, I use it everyday and have grown addicted to its workflow! I'm using a convertible laptop, and was wondering if it was possible to add a way to scroll through windows in a workspace with touch events?

The way I'd envision it would be to handle scrolling on the topbar, or along the top and bottom edges of the screen (I use Dash to Panel).

I'm not well-versed enough in GJS to really help, sorry

Thesola10 avatar Jan 02 '21 10:01 Thesola10

Yes, this is possible, and I'd be happy to take PR and help people out with the code, but it won't be something I'll prioritize spending time on myself (there's a quite a lot of other stuff that needs fixing/merging etc.).

Some pointers to the code.

gesture.js is the current implementation of touchpad scrolling. There's a bit ad-hoc code there to make things look right and such. But it might be straightforward to mostly copy the functionality and hook it up to the touch action api. An example of how the touch api is used can be found for instance in gnome-shell's EdgeDragAction.

To get something up and running fast I think adapting the update and done functions in gesture.js to vfunc_gesture_progress and vfunc_gesture_end might work (you'll also need to put some start conditions in vfunc_gesture_prepare).

(Worth noting while I have a laptop with a touchscreen, it's currently out of service so testing out a PR might be a troublesome for me).

hedning avatar Jan 16 '21 10:01 hedning

I did it!! over at my fork

Not filing a PR yet because it's based on @/ccope's PR, which is itself on the @/PaperWM-community fork

Thesola10 avatar Jul 29 '22 15:07 Thesola10

uh, closed by #643

Thesola10 avatar Nov 01 '23 11:11 Thesola10