From 5c22ca9d3a3b0e28d17e9557e90dd773173a8721 Mon Sep 17 00:00:00 2001 From: Emmanuel Garcia Date: Tue, 17 Nov 2015 12:02:31 -0800 Subject: [PATCH] Comment out touch handlers --- scroll-behaviors/document-scroll-behavior.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scroll-behaviors/document-scroll-behavior.html b/scroll-behaviors/document-scroll-behavior.html index aa727d2b..8f2d6373 100644 --- a/scroll-behaviors/document-scroll-behavior.html +++ b/scroll-behaviors/document-scroll-behavior.html @@ -40,11 +40,11 @@ if (yes) { window.removeEventListener('wheel', this._preventScroll); window.removeEventListener('mousewheel', this._preventScroll); - window.removeEventListener('touchmove', this._preventScroll); + // window.removeEventListener('touchmove', this._preventScroll); } else { window.addEventListener('wheel', this._preventScroll); window.addEventListener('mousewheel', this._preventScroll); - window.addEventListener('touchmove', this._preventScroll); + // window.addEventListener('touchmove', this._preventScroll); } }, @@ -63,15 +63,15 @@ el._boundHandleScroll = this._handleScroll.bind(el); el.addEventListener('wheel', el._boundHandleScroll); el.addEventListener('mousewheel', el._boundHandleScroll); - el.addEventListener('touchstart', el._boundHandleScroll); - el.addEventListener('touchmove', el._boundHandleScroll); + // el.addEventListener('touchstart', el._boundHandleScroll); + // el.addEventListener('touchmove', el._boundHandleScroll); } else if (!yes && el._hasListeners) { el.removeEventListener('wheel', el._boundHandleScroll); el.removeEventListener('mousewheel', el._boundHandleScroll); - el.removeEventListener('touchstart', el._boundHandleScroll); - el.removeEventListener('touchmove', el._boundHandleScroll); + // el.removeEventListener('touchstart', el._boundHandleScroll); + // el.removeEventListener('touchmove', el._boundHandleScroll); el._boundHandleScroll = null; }