Fix vertex showing on hover

This commit is contained in:
John Firebaugh
2013-06-03 16:43:41 -07:00
parent c68635062c
commit a853de7b87
+3 -3
View File
@@ -128,7 +128,7 @@ iD.svg.Vertices = function(projection, context) {
.filter(filter)
.call(draw, vertices, 'vertex-persistent', graph, zoom);
drawHover(surface, graph, zoom);
drawHover(surface, graph, extent, zoom);
}
function drawHover(surface, graph, extent, zoom) {
@@ -138,10 +138,10 @@ iD.svg.Vertices = function(projection, context) {
.call(draw, d3.values(hovered), 'vertex-hover', graph, zoom);
}
drawVertices.drawHover = function(surface, graph, _, zoom) {
drawVertices.drawHover = function(surface, graph, _, extent, zoom) {
if (hover !== _) {
hover = _;
drawHover(surface, graph, zoom);
drawHover(surface, graph, extent, zoom);
}
};