Make workspace animation sync better

This commit is contained in:
Tom Beckmann 2012-05-31 18:24:37 +02:00
parent ee62e0b2c8
commit 8bc0632491
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ public class WorkspaceSwitcher : Clutter.Group {
get {return _workspace;}
set {
_workspace = value;
cur.animate (Clutter.AnimationMode.EASE_OUT_QUAD, 400, y:_workspace*len+1+spacing);
cur.animate (Clutter.AnimationMode.EASE_OUT_QUAD, 300, y:_workspace*len+1+spacing);
}
}

View File

@ -347,9 +347,9 @@ namespace Gala {
in_group.set_position (-x2, -y2);
in_group.raise_top ();
out_group.animate (Clutter.AnimationMode.EASE_OUT_QUAD, 250,
out_group.animate (Clutter.AnimationMode.EASE_OUT_QUAD, 300,
x:x2, y:y2);
in_group.animate (Clutter.AnimationMode.EASE_OUT_QUAD, 250,
in_group.animate (Clutter.AnimationMode.EASE_OUT_QUAD, 300,
x:0.0f, y:0.0f).completed.connect ( () => {
end_switch_workspace ();
});