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

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

Issue 2696293002: Adds in-out easing type. (Closed)
Patch Set: Rebased to ToT 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
« no previous file with comments | « chrome/browser/android/vr_shell/ui_scene.cc ('k') | chrome/browser/resources/vr_shell/vr_shell_ui_api.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 12c5f8cbc26a46dcdc07e8ec3bdcea767e87dd64..a6eedc1c17176e7827b40c024fb323788f347fc6 100644
--- a/chrome/browser/resources/vr_shell/vr_shell_ui.js
+++ b/chrome/browser/resources/vr_shell/vr_shell_ui.js
@@ -109,9 +109,11 @@ var vrShellUi = (function() {
let anim;
anim = new api.Animation(this.elementId, ANIM_DURATION);
anim.setTranslation(0, y, -distance);
+ anim.setEasing(new api.InOutEasing());
ui.addAnimation(anim);
anim = new api.Animation(this.elementId, ANIM_DURATION);
anim.setSize(height * this.SCREEN_RATIO, height);
+ anim.setEasing(new api.InOutEasing());
ui.addAnimation(anim);
ui.setBackgroundDistance(distance * this.BACKGROUND_DISTANCE_MULTIPLIER);
« no previous file with comments | « chrome/browser/android/vr_shell/ui_scene.cc ('k') | chrome/browser/resources/vr_shell/vr_shell_ui_api.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698