mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-26 18:50:31 +00:00
give swipe event triggers a 100ms buffer to allow for async sequences
This commit is contained in:
parent
c7ed33cfeb
commit
caedd81cfd
1 changed files with 2 additions and 4 deletions
|
|
@ -263,14 +263,12 @@
|
|||
setTimeout(function(){
|
||||
$($.event.special.swipe).trigger("touchmove");
|
||||
$($.event.special.swipe).trigger("touchend");
|
||||
}, opts.timeout);
|
||||
}, opts.timeout + 100);
|
||||
|
||||
setTimeout(function(){
|
||||
same(swipe, opts.expected, "swipe expected");
|
||||
|
||||
//NOTE the start in the event closure won't be fired, fire it here
|
||||
start();
|
||||
}, opts.timeout + 400);
|
||||
}, opts.timeout + 200);
|
||||
|
||||
stop();
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue