1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-02-09 21:57:37 +03:00

block parabolic animations onEnter event

--calculations for parabolic effect are blocked
at the onEntered events because the mouse position
is faulty and breaks the animations
This commit is contained in:
Michail Vourlakos 2018-02-18 17:48:08 +02:00
parent 3a2b0f7fd6
commit 53633290fc
2 changed files with 4 additions and 4 deletions

View File

@ -581,14 +581,14 @@ Item {
return;
}
if (root.isHorizontal){
/* if (root.isHorizontal){
layoutsContainer.currentSpot = mouseX;
wrapper.calculateScales(mouseX);
}
else{
layoutsContainer.currentSpot = mouseY;
wrapper.calculateScales(mouseY);
}
}*/
}
onExited:{

View File

@ -532,7 +532,7 @@ MouseArea{
return;
}
if((!inAnimation)&&(root.dragSource == null)&&(!root.taskInAnimation) && hoverEnabled){
/* if((!inAnimation)&&(root.dragSource == null)&&(!root.taskInAnimation) && hoverEnabled){
if (inAttentionAnimation) {
var subSpacerScale = (root.zoomFactor-1)/2;
hiddenSpacerLeft.nScale = subSpacerScale;
@ -549,7 +549,7 @@ MouseArea{
wrapper.calculateScales(mouseY);
}
}
}
}*/
}
// IMPORTANT: This must be improved ! even for small miliseconds it reduces performance