dont play addedWindow animation when near parabAnim

v0.7
Michail Vourlakos 7 years ago
parent 4f758ee7df
commit 055996ebca

@ -217,6 +217,22 @@ Item {
}
}
function neighbourToHovered(index) {
if (icList.hoveredIndex<0)
return;
if (Math.abs(index - icList.hoveredIndex)<=1)
return true;
if (root.hasInternalSeparator && Math.abs(index - icList.hoveredIndex) === 2) {
if ( (index === root.hoveredIndex - 2 && root.internalSeparatorPos === root.hoveredIndex - 1)
|| (index === root.hoveredIndex + 2 && root.internalSeparatorPos === root.hoveredIndex + 1))
return true;
}
return false;
}
function getFrozenTask(identifier) {
for(var i=0; i<frozenTasks.length; ++i) {
if (frozenTasks[i].id === identifier) {

@ -204,7 +204,8 @@ MouseArea{
property int previousCount: 0
onWindowsCountChanged: {
if ((windowsCount >= 2) && (windowsCount > previousCount) && !mainItemContainer.containsMouse){
if ((windowsCount >= 2) && (windowsCount > previousCount)
&& !(mainItemContainer.containsMouse || parabolicManager.neighbourToHovered(itemIndex)) ){
if(root.dragSource == null)
mainItemContainer.groupWindowAdded();
}

Loading…
Cancel
Save