Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8.0
-
None
Description
ListView, and presumably GridView handle SmoothedAnimation in the displaced transition incorrectly when interrupted.
The attached sample removes an item from a model and re-inserts the item while the animation is still playing. The expected behavior is for animating items to shift back into place, but instead they collapse into the top of the view. Note that this happens regardless of duration or velocity being used in the animation.
I couldn't find any documentation indicating SmoothedAnimation cannot be used in a ViewTransition, and https://doc.qt.io/qt-6/qml-qtquick-viewtransition.html#handling-interrupted-animations seems to suggest it should work.
Edit: I'm encountering somewhat similar issues with NumberAnimation but they're far harder to reproduce in a controlled environment.