slint icon indicating copy to clipboard operation
slint copied to clipboard

`TouchArea`: `has-hover` does not make sense for touch events

Open sgued opened this issue 3 months ago • 1 comments

Hovering on touch screen does not make sense, especially when there is the pressed property, which is the one that should be used.

For mouse compatibility, has-hover is still relevant to use, but touching should not trigger has-hover.

Also, the has-hover porperty of children does not properly get cleared when scrolling in a ListView.

sgued avatar Mar 28 '24 20:03 sgued

Thanks for filling an issue.

I think in general, we might need to distinguish between mouse event and touch event. So i've renamed the issue title to generalize. (You can also plug an actual mouse on an android device and it'd have a cursor, and then has-hover would still make sense)

Similarily we may want to scroll a ListView with touch event and not with mouse events. Also what happens in a TextInput might be different.

ogoffart avatar Mar 29 '24 10:03 ogoffart