Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.7.2
-
None
-
838fd79152957f457a47cd30970961a27f086848
Description
Drag & release an item
- Expected: the item animates to the open or close position
- Actual: the position jumps without animation
import QtQuick 2.5 import QtQuick.Window 2.2 import QtQuick.Controls 2.0 Window { id: window width: 360 height: 480 visible: true ListView { model: 10 anchors.fill: parent delegate: SwipeDelegate { text: index width: parent.width swipe.behind: Rectangle { color: "tomato" width: parent.width height: parent.height } } } }
The x-coordinate behaviors are only enabled when the delegate is not down/pressed. SwipeDelegate: don't emit clicked when released outside probably changed the pressed state and position change order, so now the behaviors no longer get executed on release.
Attachments
For Gerrit Dashboard: QTBUG-57350 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
178086,4 | SwipeDelegate: fix animations when releasing from a drag | 5.8 | qt/qtquickcontrols2 | Status: ABANDONED | -2 | 0 |
178151,3 | SwipeDelegate: fix animations when releasing from a drag | 5.7 | qt/qtquickcontrols2 | Status: MERGED | +2 | 0 |