From 55f9a18cce438329c03b8d78e148c1a9f1b66f54 Mon Sep 17 00:00:00 2001 From: scottjehl Date: Tue, 5 Oct 2010 13:49:36 -0400 Subject: [PATCH] changed to use both touchmove and scroll. Sometimes scroll is triggered without a touchevent, such as tapping the top chrome on iPhone. --- js/jQuery.mobile.event.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jQuery.mobile.event.js b/js/jQuery.mobile.event.js index 7a4e8ec7..cf49c758 100644 --- a/js/jQuery.mobile.event.js +++ b/js/jQuery.mobile.event.js @@ -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";