Redraw nodes that move off the screen (fixes #735)

This commit is contained in:
John Firebaugh
2013-02-12 13:24:09 -08:00
parent 0a9d19b819
commit 072f85e2b1

View File

@@ -89,7 +89,9 @@ iD.Difference = function (base, head) {
b = change.base,
entity = h || b;
if (extent && !entity.intersects(extent, h ? head : base))
if (extent &&
(!h || !h.intersects(extent, head)) &&
(!b || !b.intersects(extent, base)))
continue;
result[id] = h;