diff --git a/js/id/svg/labels.js b/js/id/svg/labels.js index 771fe9a2a..f69784576 100644 --- a/js/id/svg/labels.js +++ b/js/id/svg/labels.js @@ -236,6 +236,9 @@ iD.svg.Labels = function(projection, context) { function hideOnMouseover() { + + if (!mousePosition) return; + var mouse = mousePosition(d3.event), pad = 50, rect = new RTree.Rectangle(mouse[0] - pad, mouse[1] - pad, 2*pad, 2*pad),