smoother workspace transition with ease in out sin

This commit is contained in:
Daniel Fore 2012-06-04 12:53:43 -07:00
parent bd5d927309
commit 81116a511f
2 changed files with 3 additions and 3 deletions

View File

@ -431,9 +431,9 @@ namespace Gala
in_group.set_position (-x2, -y2);
group.set_child_above_sibling (in_group, null);
out_group.animate (Clutter.AnimationMode.EASE_OUT_QUAD, 300,
out_group.animate (Clutter.AnimationMode.EASE_IN_OUT_SINE, 400,
x:x2, y:y2);
in_group.animate (Clutter.AnimationMode.EASE_OUT_QUAD, 300,
in_group.animate (Clutter.AnimationMode.EASE_IN_OUT_SINE, 400,
x:0.0f, y:0.0f).completed.connect ( () => {
end_switch_workspace ();
});

View File

@ -41,7 +41,7 @@ namespace Gala
}
set {
_workspace = value;
current_workspace.animate (Clutter.AnimationMode.EASE_OUT_QUAD, 300,
current_workspace.animate (Clutter.AnimationMode.EASE_IN_OUT_SINE, 400,
x : workspaces.x + ((workspaces.get_children ().nth_data (_workspace).width + 10) * _workspace) - 5);
}
}