Commit 5e48cb1c authored by Devin Lin's avatar Devin Lin 🎨
Browse files

homescreen: Fix stackBefore call

parent 62f7ffc0
Pipeline #160442 passed with stages
in 1 minute and 21 seconds
......@@ -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
......
......@@ -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)]);
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment