remove some deprecated paraboliceffect apis

pull/17/head
Michail Vourlakos 5 years ago
parent 2343933408
commit 79bcf40e5f

@ -28,7 +28,7 @@ Item{
width: root.vertical ? wrapper.width : nHiddenSize
height: root.vertical ? nHiddenSize : wrapper.height
visible: (rightSpacer ? index === parabolicManager.lastRealTaskIndex : index === parabolicManager.firstRealTaskIndex)
visible: (rightSpacer ? index === taskItem.indexer.lastVisibleItemIndex : index === taskItem.indexer.firstVisibleItemIndex)
|| (separatorSpace > 0) || taskItem.inAttentionAnimation
|| taskItem.inFastRestoreAnimation || taskItem.inMimicParabolicAnimation

@ -62,7 +62,7 @@ Item {
maximumWidth: {
if (showsAudioBadge) {
return height;
} else if ( index === parabolicManager.firstRealTaskIndex && !taskItem.containsMouse) {
} else if ( index === taskItem.indexer.firstVisibleItemIndex && !taskItem.containsMouse) {
return (wrapper.mScale * (taskItem.metrics.iconSize - (root.enableShadows ? shadowSize/2 : 0)));
} else {
return 999999;

@ -584,14 +584,6 @@ MouseArea{
}
}
onLastValidIndexChanged: {
if (lastValidIndex>=0 && lastValidIndex<root.tasksCount){
if (!isForcedHidden && (lastValidIndex < parabolicManager.firstRealTaskIndex || lastValidIndex > parabolicManager.lastRealTaskIndex)) {
parabolicManager.updateTasksEdgesIndexes();
}
}
}
onIsDraggedChanged: {
if(isDragged && (!root.inConfigureAppletsMode)){
root.dragSource = taskItem;

@ -166,13 +166,13 @@ Item{
var scales = taskItem.parabolic.applyParabolicEffect(index, currentMousePosition, center);
//Left hiddenSpacer for first task
if(((index === parabolicManager.firstRealTaskIndex )&&(root.tasksCount>0)) && !root.disableLeftSpacer
if(((index === taskItem.indexer.firstVisibleItemIndex)&&(root.tasksCount>0)) && !root.disableLeftSpacer
&& !inMimicParabolicAnimation && !inFastRestoreAnimation && !inAttentionAnimation){
hiddenSpacerLeft.nScale = scales.leftScale - 1;
}
//Right hiddenSpacer for last task
if(((index === parabolicManager.lastRealTaskIndex )&&(root.tasksCount>0)) && !root.disableRightSpacer
if(((index === taskItem.indexer.lastVisibleItemIndex )&&(root.tasksCount>0)) && !root.disableRightSpacer
&& !inMimicParabolicAnimation && !inFastRestoreAnimation && !inAttentionAnimation){
hiddenSpacerRight.nScale = scales.rightScale - 1;
}

@ -68,9 +68,6 @@ SequentialAnimation {
//! the removal animation a small margin must applied
var spacer = taskItem.headItemIsSeparator ? -(2+taskItem.metrics.totals.lengthEdge) : ( taskItem.headItemIsSeparator ? (2+taskItem.metrics.totals.lengthEdge)/2 : 0);
//console.log("EDGES ::: " + parabolicManager.firstRealTaskIndex + " _ " + parabolicManager.lastRealTaskIndex);
//console.log("Removing ::: " + lastValidIndex + " _ " + launcherUrl + " _ " + previousTaskIsSeparator + " _ " + nextTaskIsSeparator);
if (root.vertical) {
taskItem.anchors.top = previousTask.bottom;
taskItem.anchors.topMargin = spacer;

@ -169,7 +169,7 @@ Flickable{
var block = !root.autoScrollTasksEnabled && !duringDragging;
if (block || !contentsExceed || root.tasksCount < 3
|| (task.itemIndex===parabolicManager.lastRealTaskIndex && parabolic.factor.zoom>1)) {
|| (task.itemIndex===task.indexer.lastVisibleItemIndex && parabolic.factor.zoom>1)) {
//last task with parabolic effect breaks the autoscolling behavior
return;
}

Loading…
Cancel
Save