mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-21 11:16:36 +02:00
Fix error, pos could be null
This commit is contained in:
@@ -59,7 +59,7 @@ iD.behavior.Select = function(context) {
|
||||
|
||||
function mouseup() {
|
||||
selection.on('mousemove.select', null);
|
||||
if (d3.event.x === pos[0] && d3.event.y === pos[1] &&
|
||||
if (pos && d3.event.x === pos[0] && d3.event.y === pos[1] &&
|
||||
!(d3.event.target.__data__ instanceof iD.Entity)) {
|
||||
context.enter(iD.modes.Browse(context));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user