mirror of
https://github.com/KDE/latte-dock.git
synced 2025-02-10 09:57:35 +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:
parent
3a2b0f7fd6
commit
53633290fc
@ -581,14 +581,14 @@ Item {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (root.isHorizontal){
|
/* if (root.isHorizontal){
|
||||||
layoutsContainer.currentSpot = mouseX;
|
layoutsContainer.currentSpot = mouseX;
|
||||||
wrapper.calculateScales(mouseX);
|
wrapper.calculateScales(mouseX);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
layoutsContainer.currentSpot = mouseY;
|
layoutsContainer.currentSpot = mouseY;
|
||||||
wrapper.calculateScales(mouseY);
|
wrapper.calculateScales(mouseY);
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
onExited:{
|
onExited:{
|
||||||
|
@ -532,7 +532,7 @@ MouseArea{
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if((!inAnimation)&&(root.dragSource == null)&&(!root.taskInAnimation) && hoverEnabled){
|
/* if((!inAnimation)&&(root.dragSource == null)&&(!root.taskInAnimation) && hoverEnabled){
|
||||||
if (inAttentionAnimation) {
|
if (inAttentionAnimation) {
|
||||||
var subSpacerScale = (root.zoomFactor-1)/2;
|
var subSpacerScale = (root.zoomFactor-1)/2;
|
||||||
hiddenSpacerLeft.nScale = subSpacerScale;
|
hiddenSpacerLeft.nScale = subSpacerScale;
|
||||||
@ -549,7 +549,7 @@ MouseArea{
|
|||||||
wrapper.calculateScales(mouseY);
|
wrapper.calculateScales(mouseY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
// IMPORTANT: This must be improved ! even for small miliseconds it reduces performance
|
// IMPORTANT: This must be improved ! even for small miliseconds it reduces performance
|
||||||
|
Loading…
x
Reference in New Issue
Block a user