No double click on area fill (fixes #518)

This commit is contained in:
John Firebaugh
2013-01-26 16:43:39 -05:00
parent 269739905a
commit 46cb57cea7

View File

@@ -106,9 +106,10 @@ iD.modes.Select = function(entity, initial) {
}
function dblclick() {
var datum = d3.select(d3.event.target).datum();
if (datum instanceof iD.Entity &&
(datum.geometry(graph) === 'area' || datum.geometry(graph) === 'line')) {
var selection = d3.select(d3.event.target),
datum = selection.datum();
if (datum instanceof iD.Way && !selection.classed('fill')) {
var choice = iD.geo.chooseIndex(datum,
d3.mouse(mode.map.surface.node()), mode.map),
node = iD.Node({ loc: choice.loc });