[gnome-shell/gnome-3-36] overviewControls: Animate sidebars the same duration as windows
- From: Robert Mader <rmader src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-36] overviewControls: Animate sidebars the same duration as windows
- Date: Tue, 23 Jun 2020 19:22:55 +0000 (UTC)
commit c02d0f3a7d80ab2173df576fd8a7befd2d68870f
Author: Daniel van Vugt <daniel van vugt canonical com>
Date: Fri May 29 16:50:14 2020 +0800
overviewControls: Animate sidebars the same duration as windows
When you tap Super and see the sidebars and windows slide, it looks more
cohesive if those animations complete at the same time.
Previously there were 0.09 seconds difference between the two animations
which was enough to make it look slightly buggy. Now it doesn't.
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1289
(cherry picked from commit c7e597cf72781ec38ff81ac84af71461b7bb2a57)
js/ui/overviewControls.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js
index d1aac35937..6395dc4f75 100644
--- a/js/ui/overviewControls.js
+++ b/js/ui/overviewControls.js
@@ -8,8 +8,9 @@ const Main = imports.ui.main;
const Params = imports.misc.params;
const ViewSelector = imports.ui.viewSelector;
const WorkspaceThumbnail = imports.ui.workspaceThumbnail;
+const Overview = imports.ui.overview;
-var SIDE_CONTROLS_ANIMATION_TIME = 160;
+var SIDE_CONTROLS_ANIMATION_TIME = Overview.ANIMATION_TIME;
function getRtlSlideDirection(direction, actor) {
let rtl = actor.text_direction == Clutter.TextDirection.RTL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]