on xenial help sign in
make dropping at the end of the listView more smooth
commitf5beb8b6cc0242a27ccf6bf13ba495c9aec4c117 authorMichael Zanetti <michael.zanetti@canonical.com> dateMon 19 Aug 2013, 13:10 (13 years ago) parentb741133
1 file changed+5
Launcher/LauncherPanel.qml+5
Launcher/LauncherPanel.qml+5
@@ -274,6 +274,7 @@ Item {
274274 }
275275
276276 onReleased: {
277+ var droppedIndex = draggedIndex;
277278 if (dragging) {
278279 postDragging = true;
279280 } else {
@@ -289,6 +290,10 @@ Item {
289290
290291 progressiveScrollingTimer.stop();
291292 launcherListView.interactive = true;
293+ if (droppedIndex == launcherListView.count - 1) {
294+ launcherListView.flick(0, -launcherListView.clickFlickSpeed);
295+ }
296+
292297
293298 }
294299