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

Unified Diff: tools/perf/page_sets/tough_scheduling_cases/touch_handler_scrolling.html

Issue 2142963002: Add passive: false to touch_scheduling_cases to avoid interventions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « tools/perf/page_sets/tough_scheduling_cases/raf_touch_animation.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/tough_scheduling_cases/touch_handler_scrolling.html
diff --git a/tools/perf/page_sets/tough_scheduling_cases/touch_handler_scrolling.html b/tools/perf/page_sets/tough_scheduling_cases/touch_handler_scrolling.html
index c49833b6ce66c5c6b9783c2afe3d4a30b46713fa..1a0552d1a925894db361dcf50ec9f5330f1db44e 100644
--- a/tools/perf/page_sets/tough_scheduling_cases/touch_handler_scrolling.html
+++ b/tools/perf/page_sets/tough_scheduling_cases/touch_handler_scrolling.html
@@ -38,12 +38,13 @@
}
function startExperiment() {
- window.addEventListener('touchstart', onTouchStart);
- window.addEventListener('touchmove', onTouchMove);
+ // Pass 'passive' false in to prevent any intervention.
+ window.addEventListener('touchstart', onTouchStart, {passive: false});
+ window.addEventListener('touchmove', onTouchMove, {passive: false});
window.addEventListener('touchend', onTouchEnd);
window.addEventListener('touchleave', onTouchEnd);
window.addEventListener('touchcancel', onTouchEnd);
- window.addEventListener('wheel', onMouseWheel);
+ window.addEventListener('wheel', onMouseWheel, {passive: false});
}
window.addEventListener('load', startExperiment);
« no previous file with comments | « tools/perf/page_sets/tough_scheduling_cases/raf_touch_animation.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698