Skip to content

Commit

Permalink
fixup! Another blind attemp to work around dblclicks on Edge (Leaflet…
Browse files Browse the repository at this point in the history
…#5268)

Fix leftover that was meant to change in 2b5d401
  • Loading branch information
johndoe committed Mar 12, 2020
1 parent 88f095c commit 7f3e20f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/dom/DomEvent.DoubleTap.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ export function removeDoubleTapListener(obj, id) {

obj.removeEventListener(_touchstart, touchstart, Browser.passiveEvents ? {passive: false} : false);
obj.removeEventListener(_touchend, touchend, Browser.passiveEvents ? {passive: false} : false);
if (!Browser.edge) {
obj.removeEventListener('dblclick', dblclick, false);
}
obj.removeEventListener('dblclick', dblclick, false);

return this;
}

0 comments on commit 7f3e20f

Please sign in to comment.