Removing unnecessary logic in the zoom handler since the zoom event is no longer triggered during onClick.
This closes
init: function () {
var refreshed;
- var zoomed = false;
var panning = false;
// filters zoom events as programmatically modifying the translate or scale now triggers the handlers
k = d3.event.transform.k;
}
- // if we have zoomed, indicate that we are panning
- // to prevent deselection elsewhere
- if (zoomed) {
+ // indicate that we are panning to prevent deselection in zoom.end below
panning = true;
- } else {
- zoomed = true;
- }
// refresh the canvas
refreshed = nfCanvas.View.refresh({
}
panning = false;
- zoomed = false;
});
// add the behavior to the canvas and disable dbl click zoom
