We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a1f133 commit ee8597fCopy full SHA for ee8597f
src/plots/geo/geo.js
@@ -486,9 +486,8 @@ proto.updateFx = function(fullLayout, geoLayout) {
486
bgRect.node().onmousedown = null;
487
var zoom = createGeoZoom(_this, geoLayout)
488
bgRect.call(zoom);
489
- // TODO: Figure out how to restrict when this transition occurs. Or is it a no-op if nothing has changed?
490
- // Trigger transition to handle if minscale attribute isn't 0
491
- zoom.event(bgRect)
+ // Trigger zoom transition to account for min/max scale values
+ if (geoLayout.projection.minscale > 0 && !d3.event) zoom.event(bgRect);
492
bgRect.on('dblclick.zoom', zoomReset);
493
if(!gd._context._scrollZoom.geo) {
494
bgRect.on('wheel.zoom', null);
0 commit comments