mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
Fix deselectClick. Fixes #179
This commit is contained in:
@@ -354,18 +354,15 @@ iD.Map = function() {
|
||||
}
|
||||
|
||||
function deselectClick() {
|
||||
var hadSelection = !!selection;
|
||||
if (hadSelection) {
|
||||
if (selection.type === 'way') {
|
||||
d3.select(d3.event.target)
|
||||
.on('mousedown.drag', null)
|
||||
.on('touchstart.drag', null);
|
||||
}
|
||||
redraw();
|
||||
hideInspector();
|
||||
if (selection && selection.type === 'way') {
|
||||
d3.select(d3.event.target)
|
||||
.on('mousedown.drag', null)
|
||||
.on('touchstart.drag', null);
|
||||
}
|
||||
keybinding.on('⌫.deletefeature', null);
|
||||
selection = null;
|
||||
redraw();
|
||||
hideInspector();
|
||||
keybinding.on('⌫.deletefeature', null);
|
||||
}
|
||||
|
||||
function removeEntity(entity) {
|
||||
|
||||
Reference in New Issue
Block a user