Commit 71a3eca5 authored by Wei-Yin Chen (陳威尹)'s avatar Wei-Yin Chen (陳威尹) Committed by Commit Bot

Make touch event handlers in distiller viewer non-passive

Document-level touch event listeners are treated as passive since
M56. These touch event handlers in DOM distiller viewer are indeed
intended to block scrolling, so make them non-passive to restore
the old behavior.

Bug: 870140, b/80346318
Change-Id: I9daa7e46564607a15b0d00f092616da9be2a570e
Reviewed-on: https://chromium-review.googlesource.com/1175560Reviewed-by: default avatarMatthew Jones <mdjones@chromium.org>
Commit-Queue: Wei-Yin Chen (陳威尹) <wychen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#583473}
parent 51106b5a
......@@ -361,7 +361,11 @@ var pincher = (function() {
};
}());
window.addEventListener('touchstart', pincher.handleTouchStart, false);
window.addEventListener('touchmove', pincher.handleTouchMove, false);
window.addEventListener('touchend', pincher.handleTouchEnd, false);
window.addEventListener('touchcancel', pincher.handleTouchCancel, false);
window.addEventListener(
'touchstart', pincher.handleTouchStart, {passive: false});
window.addEventListener(
'touchmove', pincher.handleTouchMove, {passive: false});
window.addEventListener(
'touchend', pincher.handleTouchEnd, {passive: false});
window.addEventListener(
'touchcancel', pincher.handleTouchCancel, {passive: false});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment