Fix up DoubleTap in ie10 emulation mode bailing as touches isn't set (which it of course isn't!)

This commit is contained in:
danzel 2012-10-17 09:22:49 +13:00
parent f373d6b0d4
commit c6be039326

View File

@ -29,7 +29,7 @@ L.Util.extend(L.DomEvent, {
var now = Date.now(),
delta = now - (last || now);
touch = e.touches[0];
touch = e.touches ? e.touches[0] : e;
doubleTap = (delta > 0 && delta <= delay);
last = now;
}