on xenial help sign in
add some more workarounds regarding the dropping at the of the list
831b06dMichael Zanetti
Launcher/LauncherPanel.qml+5
@@ -212,7 +212,9 @@ Item {
212 NumberAnimation { target: dropIndicator; properties: "opacity"; duration: UbuntuAnimation.FastDuration }
212 NumberAnimation { target: dropIndicator; properties: "opacity"; duration: UbuntuAnimation.FastDuration }
213 NumberAnimation { properties: "itemOpacity"; duration: UbuntuAnimation.BriskDuration }
213 NumberAnimation { properties: "itemOpacity"; duration: UbuntuAnimation.BriskDuration }
214 SequentialAnimation {
214 SequentialAnimation {
215+ ScriptAction { script: if (index == launcherListView.count-1) launcherListView.flick(0, -launcherListView.clickFlickSpeed); }
215 UbuntuNumberAnimation { properties: "height" }
216 UbuntuNumberAnimation { properties: "height" }
217+ ScriptAction { script: if (index == launcherListView.count-1) launcherListView.flick(0, -launcherListView.clickFlickSpeed); }
216 PropertyAction { target: dndArea; property: "postDragging"; value: false }
218 PropertyAction { target: dndArea; property: "postDragging"; value: false }
217 PropertyAction { target: dndArea; property: "draggedIndex"; value: -1 }
219 PropertyAction { target: dndArea; property: "draggedIndex"; value: -1 }
218 }
220 }
@@ -308,6 +310,9 @@ Item {
308 if (droppedIndex >= launcherListView.count - 2 && postDragging) {
310 if (droppedIndex >= launcherListView.count - 2 && postDragging) {
309 launcherListView.flick(0, -launcherListView.clickFlickSpeed);
311 launcherListView.flick(0, -launcherListView.clickFlickSpeed);
310 }
312 }
313+ if (droppedIndex == 0 && postDragging) {
314+ launcherListView.flick(0, launcherListView.clickFlickSpeed);
315+ }
311 }
316 }
312
317
313 onPressAndHold: {
318 onPressAndHold: {