Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add event check before triggering zoom transition
  • Loading branch information
camdecoster committed Jul 24, 2025
commit ee8597f865048f7e6ede3d9c7b8a8924d5dea105
5 changes: 2 additions & 3 deletions src/plots/geo/geo.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,9 +486,8 @@ proto.updateFx = function(fullLayout, geoLayout) {
bgRect.node().onmousedown = null;
var zoom = createGeoZoom(_this, geoLayout)
bgRect.call(zoom);
// TODO: Figure out how to restrict when this transition occurs. Or is it a no-op if nothing has changed?
// Trigger transition to handle if minscale attribute isn't 0
zoom.event(bgRect)
// Trigger zoom transition to account for min/max scale values
if (geoLayout.projection.minscale > 0 && !d3.event) zoom.event(bgRect);
bgRect.on('dblclick.zoom', zoomReset);
if(!gd._context._scrollZoom.geo) {
bgRect.on('wheel.zoom', null);
Expand Down