slint
slint copied to clipboard
`TouchArea`: `has-hover` does not make sense for touch events
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
.
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.