Chromium Code Reviews| Index: tools/perf/page_sets/key_silk_cases.py |
| diff --git a/tools/perf/page_sets/key_silk_cases.py b/tools/perf/page_sets/key_silk_cases.py |
| index f8fe4f9ff86f06c38bb2dbb7e3aca53ea9ab4fce..45b6c9b908e753941b478b998a859588008554b6 100644 |
| --- a/tools/perf/page_sets/key_silk_cases.py |
| +++ b/tools/perf/page_sets/key_silk_cases.py |
| @@ -560,6 +560,13 @@ class Page26(KeySilkCasesPage): |
| action_runner.Wait(1) |
| def PerformPageInteractions(self, action_runner): |
| + # add a touch-action: none because this page prevent defaults all |
| + # touch moves |
|
tdresser
2016/07/27 14:42:51
Comment needs capitalization/punctuation.
dtapuska
2016/07/27 14:47:21
Done.
|
| + action_runner.ExecuteJavaScript(''' |
| + var style = document.createElement("style"); |
| + document.head.appendChild(style); |
| + style.sheet.insertRule("body { touch-action: none }", 0); |
| + ''') |
| with action_runner.CreateGestureInteraction('ScrollAction'): |
| action_runner.ScrollPage(distance=5000) |