diff --git a/debug/tests/doubleclick-events-slowdown.html b/debug/tests/doubleclick-events-slowdown.html new file mode 100644 index 00000000..2c282117 --- /dev/null +++ b/debug/tests/doubleclick-events-slowdown.html @@ -0,0 +1,72 @@ + + + + Leaflet debug page + + + + + + + + + + + + +

This test is meant for testing the performance of doubleclick event handler in IE. See #4127 and #2820

+ +
+
+ + + + diff --git a/src/dom/DomEvent.DoubleTap.js b/src/dom/DomEvent.DoubleTap.js index 5be9097a..f4d55989 100644 --- a/src/dom/DomEvent.DoubleTap.js +++ b/src/dom/DomEvent.DoubleTap.js @@ -63,7 +63,8 @@ L.extend(L.DomEvent, { obj.addEventListener(touchend, onTouchEnd, false); // On some platforms (notably, chrome on win10 + touchscreen + mouse), - // the browser doesn't fire touchend/pointerup events but does fire native dblclicks + // the browser doesn't fire touchend/pointerup events but does fire + // native dblclicks. See #4127. obj.addEventListener('dblclick', handler, false); return this;