cosmic-panel icon indicating copy to clipboard operation
cosmic-panel copied to clipboard

WIP Support for touch input

Open ids1024 opened this issue 1 year ago • 2 comments

Requires https://github.com/pop-os/xdg-shell-wrapper/pull/22.

Seems to be working now. And panel applets already support touch, since it was added to iced-sctk.

I want to see if update_pointer and this touch_under can be cleanup up and deduplicated a bit though... as well as a bit more testing.

ids1024 avatar Jun 12 '24 21:06 ids1024

This looks pretty good to me. I'm not sure how touch should be handled for auto-hiding panels though, and also stacked auto-hiding panels, which are a bit complicated. We might want to add a method to the space trait for down / up, that can be used like how enter / leave are used.

wash2 avatar Jun 12 '24 22:06 wash2

Yeah. For auto-hiding panels, probably touches within a certain number of pixels of the edge of the screen should show the panel, but I'm not sure there's a way to do that without having a surface that will also intercept mouse events? Instead of letting them go to the window behind the dock.

Edit: I assume we can't reliably detect a swipe from a screen edge handling touches just on a border 1 px wide. At least not on all screens.

ids1024 avatar Jun 13 '24 02:06 ids1024

Any updates on this? Would be great to have touch support in Cosmic Panel 🙏

kajusnau avatar Jun 23 '25 08:06 kajusnau