Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3051)

Unified Diff: chrome/browser/resources/vr_shell/vr_shell_ui.js

Issue 2696293002: Adds in-out easing type. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/vr_shell/vr_shell_ui.js
diff --git a/chrome/browser/resources/vr_shell/vr_shell_ui.js b/chrome/browser/resources/vr_shell/vr_shell_ui.js
index d7d407d2cc403fcb7ffcd94fd01109b42e469393..360323a62c3d91c0bfbf2af0558f32d66f7b0f20 100644
--- a/chrome/browser/resources/vr_shell/vr_shell_ui.js
+++ b/chrome/browser/resources/vr_shell/vr_shell_ui.js
@@ -96,10 +96,11 @@ var vrShellUi = (function() {
let anim;
anim = new api.Animation(this.elementId, ANIM_DURATION);
anim.setTranslation(0, y, z);
+ anim.setEasing(new api.InOutEasing(2));
cjgrant 2017/02/16 15:10:25 We should probably have a module level constant EA
tiborg 2017/02/16 18:39:33 Set default values for the easing. So, we don't ne
cjgrant 2017/02/16 20:54:07 Acknowledged.
ui.addAnimation(anim);
anim = new api.Animation(this.elementId, ANIM_DURATION);
anim.setSize(height * this.SCREEN_RATIO, height);
- anim.setEasing(new api.InEasing(2));
+ anim.setEasing(new api.InOutEasing(2));
ui.addAnimation(anim);
}

Powered by Google App Engine
This is Rietveld 408576698