| Index: tools/telemetry/telemetry/page/actions/scroll.js
|
| diff --git a/tools/telemetry/telemetry/page/actions/scroll.js b/tools/telemetry/telemetry/page/actions/scroll.js
|
| index e68d91a12597311e0b4b3d7192d8f38fc72a1375..218fae05161fe629e663c510bf7e6a2208771338 100644
|
| --- a/tools/telemetry/telemetry/page/actions/scroll.js
|
| +++ b/tools/telemetry/telemetry/page/actions/scroll.js
|
| @@ -16,10 +16,12 @@
|
| this.element_ = opt_options.element;
|
| this.left_start_percentage_ = opt_options.left_start_percentage;
|
| this.top_start_percentage_ = opt_options.top_start_percentage;
|
| + this.gesture_source_type = opt_options.gesture_source_type;
|
| } else {
|
| this.element_ = document.body;
|
| this.left_start_percentage_ = 0.5;
|
| this.top_start_percentage_ = 0.5;
|
| + this.gesture_source_type = chrome.gpuBenchmarking.DEFAULT_INPUT;
|
| }
|
| }
|
|
|
| @@ -73,7 +75,7 @@
|
| rect.top + rect.height * this.options_.top_start_percentage_;
|
| chrome.gpuBenchmarking.smoothScrollBy(distance, function() {
|
| callback();
|
| - }, start_left, start_top);
|
| + }, start_left, start_top, this.options_.gesture_source_type);
|
| };
|
|
|
| // This class scrolls a page from the top to the bottom once.
|
|
|