mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 03:42:37 +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) {
|
if (event.originalEvent.ctrlKey || event.originalEvent.metaKey) {
|
||||||
this.feature.datalayer.edit(event)
|
this.feature.datalayer.edit(event)
|
||||||
} else {
|
} else {
|
||||||
if (this.feature._toggleEditing) this.feature._toggleEditing(event)
|
this.feature.toggleEditing(event)
|
||||||
else this.feature.edit(event)
|
|
||||||
}
|
}
|
||||||
} else if (!this._map.editTools?.drawing()) {
|
} else if (!this._map.editTools?.drawing()) {
|
||||||
this._map._umap.editContextmenu.open(
|
this._map._umap.editContextmenu.open(
|
||||||
|
|
Loading…
Reference in a new issue