From 7e4e8f3872ae2c56b65dae9df825ac73c2d826bb Mon Sep 17 00:00:00 2001 From: Oluwaseun Date: Thu, 20 Oct 2022 19:05:15 +0100 Subject: [PATCH] update 'comments' --- src/mapmixins/DoubleClickZoom.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mapmixins/DoubleClickZoom.js b/src/mapmixins/DoubleClickZoom.js index 6aad37df2..4f660e2be 100644 --- a/src/mapmixins/DoubleClickZoom.js +++ b/src/mapmixins/DoubleClickZoom.js @@ -62,9 +62,9 @@ L.Map.DoubleClickZoom.include({ } else { // manually fire doubleclick event only for touch screens that don't natively fire it if (L.Browser.touch && (oe && oe.sourceCapabilities.firesTouchEvents)) { - // in `DoubleClickLabels.js`, we just do map.fire('dblclick') bc `_onDoublClick` doesn't use the - // passed "e" (for now). To generate a 'real' DOM event that will have all of its corresponding core - // properties (originalEvent, latlng, etc.), use Leaflet's `#map._fireDOMEvent` (Leaflet 1.5.1 source) + /* in `DoubleClickLabels.js`, we just do map.fire('dblclick') bc `_onDoublClick` doesn't use the + passed "e" (for now). To generate a 'real' DOM event that will have all of its corresponding core + properties (originalEvent, latlng, etc.), use Leaflet's `#map._fireDOMEvent` (Leaflet 1.5.1 source) */ map._fireDOMEvent(oe, 'dblclick', [map]); } }