fix #342, occasional instant sliding-in

--this is a lot related with the compositor
painting. By adding a delay into showing tasks
this is improved a lot
pull/1/head
Michail Vourlakos 8 years ago
parent df0d017eb6
commit 6a5be6dbc5

@ -1110,6 +1110,17 @@ MouseArea{
property int speed: Latte.WindowSystem.compositingActive ? root.durationTime* (1.2*units.longDuration) : 0
property bool animationSent: false
//Ghost animation that acts as a delayer, in order to fix #342
PropertyAnimation {
target: wrapper
property: "opacity"
to: 0
//it is not depend to durationTime when animations are active
duration: root.durationTime > 0 ? 750 : 0
easing.type: Easing.InQuad
}
//end of ghost animation
ScriptAction{
script:{
if (!showWindowAnimation.animationSent) {

Loading…
Cancel
Save