homescreen: Fix stackBefore call

This commit is contained in:
Devin Lin 2022-04-06 13:40:28 -04:00
parent 62f7ffc074
commit 5e48cb1cc1
2 changed files with 3 additions and 3 deletions

View file

@ -145,7 +145,7 @@ MouseArea { // use mousearea to ensure clicks don't go behind
}
}
// slight pause to give slower devices time to catch up when the item becomes visible
PauseAnimation { duration: 50 }
PauseAnimation { duration: 20 }
ParallelAnimation {
id: parallelAnim
property real animationDuration: PlasmaCore.Units.longDuration + PlasmaCore.Units.shortDuration

View file

@ -117,10 +117,10 @@ Repeater {
if (!launcherDragManager.active && parent != parentFromLocation) {
parent = parentFromLocation;
if (model.applicationLocation === MobileShell.ApplicationListModel.Favorites) {
plasmoid.nativeInterface.stackBefore(delegate, parentFromLocation.children[index]);
MobileShell.HomeScreenUtils.stackBefore(delegate, parentFromLocation.children[index]);
} else if (model.applicationLocation === MobileShell.ApplicationListModel.Grid) {
plasmoid.nativeInterface.stackBefore(delegate, parentFromLocation.children[Math.max(0, index - MobileShell.ApplicationListModel.favoriteCount)]);
MobileShell.HomeScreenUtils.stackBefore(delegate, parentFromLocation.children[Math.max(0, index - MobileShell.ApplicationListModel.favoriteCount)]);
}
}
}