mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-17 22:24:49 +02:00
avoid history change when dragging midpoint
dragging a midpoint onto an adjacent node should do nothing
This commit is contained in:
@@ -118,9 +118,13 @@ iD.modes.DragNode = function(context) {
|
||||
connectAnnotation(d));
|
||||
|
||||
} else if (d.type === 'node' && adjacent(d)) {
|
||||
context.replace(
|
||||
if (wasMidpoint) {
|
||||
context.history().pop();
|
||||
} else {
|
||||
context.replace(
|
||||
iD.actions.DeleteNode(entity.id),
|
||||
t('operations.delete.annotation.vertex'));
|
||||
}
|
||||
|
||||
} else if (d.type === 'node' && d.id !== entity.id) {
|
||||
context.replace(
|
||||
|
||||
Reference in New Issue
Block a user