pop-os / libcosmic

WIP library for COSMIC applications
https://pop-os.github.io/libcosmic/cosmic/
Mozilla Public License 2.0
351 stars 32 forks source link

Various touch issues with libcosmic apps #441

Open Quackdoc opened 1 month ago

Quackdoc commented 1 month ago

A grouping of various touch issues some of which may stem from the same issue


Cosmic store:

Touch: Events are triggered on wl-touch down events not wl-touch up events

originally reported https://github.com/pop-os/cosmic-store/issues/70

With cosmic store, touch seems to work fine except for that "pressing" an entry triggers it, not after releasing, this means you

A) cannot long press, which probably isn't super relevant since there is no context menu B) cannot scroll unless you have enough space to the side

Behavior should be; on down, on up = trigger entry on-press, on motion, on up move the screen, do not trigger entry

motion needs to have some kind of distance buffer since sensitive touchscreens can report very small motions not intended to be touch drag events. a short time stamp but a long motion should be interpreted as a drag and a long time but short motion should be a long press or a context click.

Cosmic-files has in some cases the same issues https://github.com/pop-os/cosmic-files/issues/62

Other issues: cannot flick with tap and drag scrolling


Cosmic Files:

Originally reported: https://github.com/pop-os/cosmic-files/issues/62

Other issues:

Dragging on free space will create a selection box instead of scrolling page.

Doublonmousse commented 2 weeks ago

It seems that appmenu items (like file > save or view> about) can't be clicked with touch inputs

mmstick commented 2 weeks ago

Touch is a work in progress