on xenial help sign in
add some more workarounds regarding the dropping at the of the list
commit831b06d6f6a1d6e1473d0d268d2fd9230fec7cb8 authorMichael Zanetti <michael.zanetti@canonical.com> dateWed 21 Aug 2013, 16:53 (13 years ago) parent57a3ca2
1 file changed+5
Launcher/LauncherPanel.qml+5
Launcher/LauncherPanel.qml+5
@@ -212,7 +212,9 @@ Item {
212212 NumberAnimation { target: dropIndicator; properties: "opacity"; duration: UbuntuAnimation.FastDuration }
213213 NumberAnimation { properties: "itemOpacity"; duration: UbuntuAnimation.BriskDuration }
214214 SequentialAnimation {
215+ ScriptAction { script: if (index == launcherListView.count-1) launcherListView.flick(0, -launcherListView.clickFlickSpeed); }
215216 UbuntuNumberAnimation { properties: "height" }
217+ ScriptAction { script: if (index == launcherListView.count-1) launcherListView.flick(0, -launcherListView.clickFlickSpeed); }
216218 PropertyAction { target: dndArea; property: "postDragging"; value: false }
217219 PropertyAction { target: dndArea; property: "draggedIndex"; value: -1 }
218220 }
@@ -308,6 +310,9 @@ Item {
308310 if (droppedIndex >= launcherListView.count - 2 && postDragging) {
309311 launcherListView.flick(0, -launcherListView.clickFlickSpeed);
310312 }
313+ if (droppedIndex == 0 && postDragging) {
314+ launcherListView.flick(0, launcherListView.clickFlickSpeed);
315+ }
311316 }
312317
313318 onPressAndHold: {