ubports / unity8

The operating environment for everywhere. Lomiri development has moved to https://gitlab.com/ubports/development/core/lomiri
https://lomiri.com/
GNU General Public License v3.0
723 stars 99 forks source link

ListView does not return swiped item to original unswiped state with mouse #357

Closed Danfro closed 3 years ago

Danfro commented 3 years ago

When swiping an item in a ListView it stays at it moved position (left/right). The swiped property is set to true. Once the list is scrolled up/down, the item gets moved back to it's zero position and swiped is set to false.

When using a mouse, the list item is not moved back to zero and swiped is not set to false. When the item moves out of view and comes back, it is back to its zero position, but swiped is still not set to false.

This problem came up while working on this MR for Teleports when trying to auto-disable fastscroll when an item is swiped. Because swiped is readonly, I currently see no way to force the item to it's "unswiped" state. Even moving it to zero position does not reset swiped state.

lduboeuf commented 3 years ago

Are you sure it is a Lomiri issue not in UI Toolkit ?

Danfro commented 3 years ago

Sight. Too many repos. Sure, it needs to go to UI toolkit. Thanks @lduboeuf .