mirror of
https://github.com/Leaflet/Leaflet.git
synced 2025-08-20 14:34:38 +00:00
* Remove redundant condition
Source: 7c2ac9f39d (diff-f7c61cee5bee8604986cfce68530ef8df7316a4e93ea6a2ddfb6e97fa4234421R662)
* Fix issue when contextmenu was prevented on map even w/o real listeners
This commit is contained in:
@ -1365,7 +1365,7 @@ export var Map = Evented.extend({
|
||||
if (src === this._container) { break; }
|
||||
src = src.parentNode;
|
||||
}
|
||||
if (!targets.length && !dragging && !isHover && DomEvent.isExternalTarget(src, e)) {
|
||||
if (!targets.length && !dragging && !isHover && this.listens(type, true)) {
|
||||
targets = [this];
|
||||
}
|
||||
return targets;
|
||||
|
Reference in New Issue
Block a user