give swipe event triggers a 100ms buffer to allow for async sequences

This commit is contained in:
John Bender 2011-03-26 00:48:41 -07:00
parent c7ed33cfeb
commit caedd81cfd

View file

@ -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();
};