mirror of
https://github.com/elementary/gala.git
synced 2024-10-05 19:27:25 +03:00
Make workspace animation sync better
This commit is contained in:
parent
ee62e0b2c8
commit
8bc0632491
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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 ();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user