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

Unified Diff: tools/perf/page_sets/tough_scheduling_cases/raf_touch_animation.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 | « no previous file | tools/perf/page_sets/tough_scheduling_cases/touch_handler_scrolling.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/tough_scheduling_cases/raf_touch_animation.html
diff --git a/tools/perf/page_sets/tough_scheduling_cases/raf_touch_animation.html b/tools/perf/page_sets/tough_scheduling_cases/raf_touch_animation.html
index c2757f237134b976c95a7d758c5ea18c0f55dcf5..2e199d666d7b7ff5200bc29fbc809affe339d6b4 100644
--- a/tools/perf/page_sets/tough_scheduling_cases/raf_touch_animation.html
+++ b/tools/perf/page_sets/tough_scheduling_cases/raf_touch_animation.html
@@ -59,12 +59,13 @@
function startExperiment() {
g_status = document.getElementById('status');
- 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.requestAnimationFrame(onAnimationFrame);
}
« no previous file with comments | « no previous file | tools/perf/page_sets/tough_scheduling_cases/touch_handler_scrolling.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698