[Webkit-unassigned] [Bug 202143] [iOS] iOS 13 does not send proper events in Safari, such as double tap and long touch, possibly influencing Leaflet JS apps
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Sep 30 07:43:12 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=202143
Antoine Quint <graouts at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #6 from Antoine Quint <graouts at apple.com> ---
OK, the double-tap issue is also a Leaflet issue. Consider this code in DomEvent.DoubleTap.js:
function onTouchStart(e) {
var count;
if (Browser.pointer) {
if ((!Browser.edge) || e.pointerType === 'mouse') { return; }
count = _pointersCount;
} else {
count = e.touches.length;
}
if (count > 1) { return; }
var now = Date.now(),
delta = now - (last || now);
touch = e.touches ? e.touches[0] : e;
doubleTap = (delta > 0 && delta <= delay);
last = now;
}
The function branches early between user agents that support Pointer Events and those that don't (based on `Browser.pointer`), but if `Browser.edge` is false it returns early. That property is false in iOS 13 and thus this function returns early and a "dblclick" event is never dispatched on the Leaflet Map object.
So all reported issues are Leaflet issues, there is nothing for us to do here.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190930/85d2a461/attachment.html>
More information about the webkit-unassigned
mailing list