Fix perf regression of PassiveDocumentWheelEventListeners.
JS_SCROLL_TEXT_ONLY and JS_SCROLL_200_LAYER_GRID both add event listeners to the document that preventDefault wheel/touch events and call JS scrolling. The tests regressed after landing the following cl: https://chromium-review.googlesource.com/1183538 This is because with passive document level event listeners interventions the wheel/mousewheel and touchstart/touchmove event listeners on a document level target are treated as passive if not requested otherwise. This cl changes the event listeners in both tests to passive:false to make sure that they actually prevent scrolling. Bug: 877586 Change-Id: I25fb5c0563534b1d67f124bd43272d02d849fa23 Reviewed-on: https://chromium-review.googlesource.com/c/1329447 Commit-Queue: Sahel Sharify <sahel@chromium.org> Reviewed-by:Charlie Andrews <charliea@chromium.org> Cr-Commit-Position: refs/heads/master@{#607441}
Showing
Please register or sign in to comment