fix some parabolic effect glitches

pull/15/head
Michail Vourlakos 5 years ago
parent 7e1be6144a
commit 81abb0eb35

@ -994,7 +994,7 @@ Item {
return;
}
var rapidMovement = parabolicManager.lastIndex>=0 && Math.abs(parabolicManager.lastIndex-index)>2;
var rapidMovement = parabolicManager.lastIndex>=0 && Math.abs(parabolicManager.lastIndex-index)>1;
if (rapidMovement) {
root.setGlobalDirectRender(true);
@ -1090,7 +1090,7 @@ Item {
target: wrapper
property: "zoomScale"
to: 1
duration: 4 * appletItem.animationTime
duration: 3 * appletItem.animationTime
easing.type: Easing.InCubic
}
}

@ -1238,7 +1238,7 @@ Item {
ignoreUnknownSignals : true
onContainsMouseChanged: {
if (!latteView.visibility.containsMouse) {
if (!latteView.visibility.containsMouse && !checkRestoreZoom.running) {
startCheckRestoreZoomTimer();
}
}
@ -1619,7 +1619,7 @@ Item {
//Timer to check if the mouse is still outside the latteView in order to restore zooms to 1.0
Timer{
id:checkRestoreZoom
interval: 10
interval: 90
onTriggered: {
if (latteView.contextMenuIsShown) {

@ -994,7 +994,7 @@ Item {
//is not inside a Latte dock
Timer{
id:checkListHovered
interval: 10
interval: 90
property int normalInterval: Math.max(120, 2 * (animations.speedFactor.current * 1.2 * animations.duration.small) + 50)

@ -678,7 +678,7 @@ MouseArea{
}
if((inAnimation == false)&&(!root.taskInAnimation)&&(!root.disableRestoreZoom) && hoverEnabled){
var rapidMovement = parabolicManager.lastIndex>=0 && Math.abs(parabolicManager.lastIndex-itemIndex)>2;
var rapidMovement = parabolicManager.lastIndex>=0 && Math.abs(parabolicManager.lastIndex-itemIndex)>1;
if (rapidMovement) {
root.setGlobalDirectRender(true);

@ -31,7 +31,7 @@ SequentialAnimation{
target: wrapper
property: "mScale"
to: 1
duration: 4 * taskItem.animationTime
duration: 3 * taskItem.animationTime
easing.type: Easing.InCubic
}
}

Loading…
Cancel
Save