dont calculate parabolic effect in some cases

--this is when there are no animations or when
the zoomFactor=1
pull/1/head
Michail Vourlakos 8 years ago
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…
Cancel
Save