changed to use both touchmove and scroll. Sometimes scroll is triggered without a touchevent, such as tapping the top chrome on iPhone.

This commit is contained in:
scottjehl 2010-10-05 13:49:36 -04:00
parent deaf0d94d9
commit 55f9a18cce

View file

@ -7,7 +7,7 @@ $.each( "touchstart touchmove touchend orientationchange tap taphold swipe swipe
});
var supportTouch = $.support.touch,
scrollEvent = supportTouch ? "touchmove" : "scroll",
scrollEvent = "touchmove scroll",
touchStartEvent = supportTouch ? "touchstart" : "mousedown",
touchStopEvent = supportTouch ? "touchend" : "mouseup",
touchMoveEvent = supportTouch ? "touchmove" : "mousemove";