Skip to content

Commit

Permalink
Add vertical scrolling on touch devices.
Browse files Browse the repository at this point in the history
  • Loading branch information
krisimmig committed Oct 13, 2015
1 parent 4b85741 commit 1688c57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.kinetic.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
if (self.mouseDown){
touch = e.originalEvent.touches[0];
self._inputmove(touch.clientX, touch.clientY);
if (e.preventDefault){
if (e.preventDefault && (self.settings.y || Math.abs(self.velocityY) < 5)){
e.preventDefault();
}
}
Expand Down

0 comments on commit 1688c57

Please sign in to comment.