[gnome-shell/wip/exalm/cubic] overviewControls: Use easeOutCubic transition for overview
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/exalm/cubic] overviewControls: Use easeOutCubic transition for overview
- Date: Sun, 28 Feb 2021 14:56:39 +0000 (UTC)
commit 16e7e6acae179b43181fc1afd3a9d17a8732a93c
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Sun Feb 28 19:55:09 2021 +0500
overviewControls: Use easeOutCubic transition for overview
Swipe tracker duration is intended to be used with easeOutCubic only.
js/ui/overviewControls.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js
index 7de141e0cb..726a797329 100644
--- a/js/ui/overviewControls.js
+++ b/js/ui/overviewControls.js
@@ -258,6 +258,7 @@ class ControlsManager extends St.Widget {
clip_to_allocation: true,
});
+ this._distancewtf = 100;
this._ignoreShowAppsButtonToggle = false;
this._searchEntry = new St.Entry({
@@ -637,7 +638,7 @@ class ControlsManager extends St.Widget {
}
gestureBegin(tracker) {
- const baseDistance = global.screen_height;
+ const baseDistance = this._distancewtf;
const progress = this._stateAdjustment.value;
const points = [
ControlsState.HIDDEN,
@@ -670,7 +671,7 @@ class ControlsManager extends St.Widget {
this._stateAdjustment.remove_transition('value');
this._stateAdjustment.ease(target, {
duration,
- mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ mode: Clutter.AnimationMode.EASE_OUT_CUBIC,
onComplete,
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]