mirror of
https://github.com/elementary/gala.git
synced 2024-12-24 17:53:19 +03:00
smoother workspace transition with ease in out sin
This commit is contained in:
parent
bd5d927309
commit
81116a511f
@ -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 ();
|
||||
});
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user