mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-22 05:11:52 +00:00
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:
parent
deaf0d94d9
commit
55f9a18cce
1 changed files with 1 additions and 1 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Reference in a new issue