1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-25 19:21:41 +03:00

improve when to clear parab.effect from Tasks

This commit is contained in:
Michail Vourlakos 2019-05-28 17:05:14 +03:00
parent b6520b1cd8
commit f7471e59b3

View File

@ -185,15 +185,17 @@ Item {
clearTasksLowerThan(aLId1-1);
if (latteView){
if (gAppletId > -1)
if (gAppletId > -1) {
latteView.parabolicManager.clearAppletsGreaterThan(gAppletId);
else
} else if (index < lastRealTaskIndex && lastRealTaskIndex!==-1) {
latteView.parabolicManager.clearAppletsGreaterThan(latteView.latteAppletPos);
}
if (lAppletId > -1)
if (lAppletId > -1) {
latteView.parabolicManager.clearAppletsLowerThan(lAppletId);
else
} else if (index > firstRealTaskIndex && firstRealTaskIndex!==-1) {
latteView.parabolicManager.clearAppletsLowerThan(latteView.latteAppletPos);
}
}
return {leftScale:leftScale, rightScale:rightScale};