on xenial help sign in
Fix dragging bug

1) Open dash management 2) Enter edit mode 3) Tap an item Expected: Scope lifts and releases in same position. Actual: Scope is switched with the next scope in the list.

commitc25e7084a652141516b79c503e906c45a3424c98 authorAlbert Astals <albert.astals@canonical.com> dateWed 22 Oct 2014, 09:04 (12 years ago) parent78ee5d1
1 file changed+2−2
qml/Dash/ScopesListCategory.qml+2−2
qml/Dash/ScopesListCategory.qml+2−2
@@ -115,10 +115,10 @@ Item {
115115 if (dragItem.visible) {
116116 drag.target = undefined;
117117 dragItem.visible = false;
118− dragMarker.visible = false;
119− if (dragMarker.index != index) {
118+ if (dragMarker.visible && dragMarker.index != index) {
120119 root.requestScopeMoveTo(model.scopeId, dragMarker.index);
121120 }
121+ dragMarker.visible = false;
122122 dragItem.loaderToShrink.height = listItemHeight;
123123 dragItem.loaderToShrink = null;
124124 }