Skip to content

Commit cebfb46

Browse files
committed
attach geo zoom reset handler to 'dblclick.zoom' (not 'zoom'):
- required to make the dblclick handler work in the latest d3 - more info: d3/d3#1985
1 parent 3349e7b commit cebfb46

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/plots/geo/geo.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,7 @@ proto.plot = function(geoData, fullLayout) {
7373

7474
_this.framework
7575
.call(_this.zoom)
76-
.on('dblclick', _this.zoomReset);
77-
78-
// N.B. the on 'dblclick doesn't in d3 3.5+
79-
// https://github.com/mbostock/d3/issues/1985
76+
.on('dblclick.zoom', _this.zoomReset);
8077

8178
topojsonNameNew = topojsonUtils.getTopojsonName(geoLayout);
8279

0 commit comments

Comments
 (0)