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

Unified Diff: telemetry/telemetry/internal/actions/scroll_bounce.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_bounce.py
diff --git a/telemetry/telemetry/internal/actions/scroll_bounce.py b/telemetry/telemetry/internal/actions/scroll_bounce.py
index f293a4f3064384bea06ce6496b0b237b91e39b27..f64f218e3c37c79e74972b0383c2efecabebdd99 100644
--- a/telemetry/telemetry/internal/actions/scroll_bounce.py
+++ b/telemetry/telemetry/internal/actions/scroll_bounce.py
@@ -41,6 +41,9 @@ class ScrollBounceAction(page_action.PageAction):
self._element_function is None):
self._element_function = '(document.scrollingElement || document.body)'
+ def SimulatesUserInput(self):
+ return True
+
def WillRunAction(self, tab):
utils.InjectJavaScript(tab, 'gesture_common.js')
utils.InjectJavaScript(tab, 'scroll_bounce.js')
« no previous file with comments | « telemetry/telemetry/internal/actions/scroll.py ('k') | telemetry/telemetry/internal/actions/scroll_to_element.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698