Skip to content

Commit d5883d2

Browse files
committed
no longer need to check for NaN with d3-geo
1 parent b9be8c1 commit d5883d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plots/geo/geo.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ proto.updateFx = function(fullLayout, geoLayout) {
510510
bgRect.on('mousemove', function() {
511511
var lonlat = _this.projection.invert(d3.mouse(this));
512512

513-
if(!lonlat || isNaN(lonlat[0]) || isNaN(lonlat[1])) {
513+
if(!lonlat) {
514514
return dragElement.unhover(gd, d3.event);
515515
}
516516

0 commit comments

Comments
 (0)