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

Unified Diff: Source/devtools/front_end/elements/BezierEditor.js

Issue 945163005: Devtools Animations: Set correct bezier when category is selected (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/elements/BezierEditor.js
diff --git a/Source/devtools/front_end/elements/BezierEditor.js b/Source/devtools/front_end/elements/BezierEditor.js
index d006fcfef66032f490935d145eda14181315a441..ca1bff072bfdd914c8dec1789b656f320dae6ce0 100644
--- a/Source/devtools/front_end/elements/BezierEditor.js
+++ b/Source/devtools/front_end/elements/BezierEditor.js
@@ -232,7 +232,7 @@ WebInspector.BezierEditor.prototype = {
this._header.classList.add("bezier-header-active");
this._selectedCategory = category;
this._selectedCategory.icon.classList.add("bezier-preset-selected");
- this.setBezier(WebInspector.Geometry.CubicBezier.parse(category.presets[0].value));
+ this.setBezier(WebInspector.Geometry.CubicBezier.parse(category.presets[category.presetIndex].value));
this._onchange();
this._startPreviewAnimation();
if (event)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698