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

Unified Diff: tools/telemetry/telemetry/page/actions/scroll_bounce.js

Issue 346923003: Add ActionRunner wrapper for the remaining less used actions (try 2): (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update unit test to skip test if touch is not supported. Created 6 years, 5 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: tools/telemetry/telemetry/page/actions/scroll_bounce.js
diff --git a/tools/telemetry/telemetry/page/actions/scroll_bounce.js b/tools/telemetry/telemetry/page/actions/scroll_bounce.js
index fbbf477480de409d6967643b246a0cd73f36c889..b41383c096ddd859695f487cd89308371e55134f 100644
--- a/tools/telemetry/telemetry/page/actions/scroll_bounce.js
+++ b/tools/telemetry/telemetry/page/actions/scroll_bounce.js
@@ -33,9 +33,9 @@
var rect = __GestureCommon_GetBoundingVisibleRect(this.options_.element);
var start_left =
- rect.left + rect.width * this.options_.left_start_percentage;
+ rect.left + rect.width * this.options_.left_start_ratio;
var start_top =
- rect.top + rect.height * this.options_.top_start_percentage;
+ rect.top + rect.height * this.options_.top_start_ratio;
chrome.gpuBenchmarking.scrollBounce(this.options_.direction,
this.options_.distance,
this.options_.overscroll,

Powered by Google App Engine
This is Rietveld 408576698