mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-21 10:50:30 +03:00
dont calculate parabolic effect in some cases
--this is when there are no animations or when the zoomFactor=1
This commit is contained in:
parent
c4171dff86
commit
8810626422
@ -857,6 +857,10 @@ Item {
|
||||
|
||||
|
||||
function calculateScales( currentMousePosition ){
|
||||
if (root.editMode || root.zoomFactor===1 || root.durationTime===0) {
|
||||
return;
|
||||
}
|
||||
|
||||
var distanceFromHovered = Math.abs(index - layoutsContainer.hoveredIndex);
|
||||
|
||||
// A new algorithm tryig to make the zoom calculation only once
|
||||
|
@ -445,7 +445,7 @@ MouseArea{
|
||||
}//Flow
|
||||
|
||||
function calculateScales( currentMousePosition ){
|
||||
if (root.editMode) {
|
||||
if (root.editMode || root.zoomFactor===1 || root.durationTime===0) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user