mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
fix: shift-click on a path should toggle edit
This was broken in 4adc558560
Co-authored-by: David Larlet <david@larlet.fr>
This commit is contained in:
parent
0fe2103b71
commit
ba20f5791c
1 changed files with 1 additions and 2 deletions
|
@ -60,8 +60,7 @@ const FeatureMixin = {
|
|||
if (event.originalEvent.ctrlKey || event.originalEvent.metaKey) {
|
||||
this.feature.datalayer.edit(event)
|
||||
} else {
|
||||
if (this.feature._toggleEditing) this.feature._toggleEditing(event)
|
||||
else this.feature.edit(event)
|
||||
this.feature.toggleEditing(event)
|
||||
}
|
||||
} else if (!this._map.editTools?.drawing()) {
|
||||
this._map._umap.editContextmenu.open(
|
||||
|
|
Loading…
Reference in a new issue