Fix up DoubleTap in ie10 emulation mode bailing as touches isn't set (which it of course isn't!)
This commit is contained in:
parent
f373d6b0d4
commit
c6be039326
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user