Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Remove erroneous Touch.preventDefault call
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Nov 5, 2013
1 parent 2deb730 commit 876fa42
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion samples/scroller/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<title>PointerEvent scrolling sample</title>
<style>
* {
-webkit-user-select: none;
box-sizing: border-box;
}
body, html {
Expand Down
2 changes: 0 additions & 2 deletions src/touch.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,10 @@
var pointers = touchMap(tl, this.touchToPointer, this);
// forward touch preventDefaults
pointers.forEach(function(p) {
var pd = p.preventDefault;
p.preventDefault = function() {
this.scrolling = false;
this.firstXY = null;
inEvent.preventDefault();
pd();
};
}, this);
pointers.forEach(inFunction, this);
Expand Down

0 comments on commit 876fa42

Please sign in to comment.