pop-os / cosmic-store

WIP COSMIC app store
GNU General Public License v3.0
83 stars 49 forks source link

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

Open Quackdoc opened 6 months ago

Quackdoc commented 6 months ago

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

should this be reported against libcosmic instead?

mmstick commented 6 months ago

The code for handling Wayland events is in the sctk runtime in pop-os/iced, but issues for that should be filed on libcosmic.