Skip to content

Commit 0eb7812

Browse files
resolved #1
1 parent 983d29b commit 0eb7812

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

js/map_manager.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ class Map_Manager {
3838
$this.update_map_pos()
3939
});
4040
this.map.on('click', function(e) {
41-
if (e.originalEvent.target.classList.contains('leaflet-interactive')) {
42-
// The user clicked a marker or a polygon hitbox
41+
42+
const interactiveClasses = ['leaflet-interactive', 'leaflet-sbs-range'];
43+
if (interactiveClasses.some(cls => e.originalEvent.target.classList.contains(cls))) {
44+
// The user clicked a marker, a polygon hitbox, or the split control, so ignore
4345
return;
4446
}
4547
var text = LANG.MAP.MAP_SEARCH;

0 commit comments

Comments
 (0)