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

Unified Diff: telemetry/telemetry/internal/actions/scroll.py

Issue 2876843002: Simulate interactivity boost for simulated user input events
Patch Set: Created 3 years, 7 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: telemetry/telemetry/internal/actions/scroll.py
diff --git a/telemetry/telemetry/internal/actions/scroll.py b/telemetry/telemetry/internal/actions/scroll.py
index dc4f1659df7e3035e0b448b134e1be8095bc10fc..f14c7da22dbe01e84189f4927d35bf7a5348fae6 100644
--- a/telemetry/telemetry/internal/actions/scroll.py
+++ b/telemetry/telemetry/internal/actions/scroll.py
@@ -40,6 +40,9 @@ class ScrollAction(page_action.PageAction):
self._distance_func = js_template.Render(
'function() { return 0 + {{ @expr }}; }', expr=distance_expr)
+ def SimulatesUserInput(self):
+ return True
+
def WillRunAction(self, tab):
if self._direction in ('downleft', 'downright', 'upleft', 'upright'):
# Diagonal scrolling support was added in Chrome branch number 2332.
« no previous file with comments | « telemetry/telemetry/internal/actions/repeatable_scroll.py ('k') | telemetry/telemetry/internal/actions/scroll_bounce.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698