Skip to content

Commit

Permalink
Merge pull request #16 from PolymerLabs/remove-touch-handlers
Browse files Browse the repository at this point in the history
Comment out touch handlers
  • Loading branch information
frankiefu committed Nov 17, 2015
2 parents 317f720 + 5c22ca9 commit 57e1dab
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scroll-behaviors/document-scroll-behavior.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
},

Expand All @@ -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;

}
Expand Down

0 comments on commit 57e1dab

Please sign in to comment.