Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.8.4, 5.0.1
-
None
Description
MouseArea does not start dragging an item until after the mouse position has moved some minimum distance, but the distance to move the item is calculated relative to the press position. So when a drag starts the item will be moved a distance greater than the drag threshold in a single frame which can be visually jarring.
Calculating the move position relative to the position of the mouse when the drag is detected means the item will not be moved further than the distance between two mouse events. Which is what Flickable does.
Attachments
Issue Links
- resulted in
-
QTBUG-58025 qmltest::mouserelease::test_mouseDrag() failed
-
- Closed
-
-
QTBUG-38539 QtQuick dragging: Mouse cursor is off while dragging item
-
- Closed
-
For Gerrit Dashboard: QTBUG-30188 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
50924,2 | Smooth dragging an item with MouseArea. | stable | qt/qtdeclarative | Status: MERGED | +2 | 0 |