Skip to content

Commit

Permalink
null event when calling zoom.transform
Browse files Browse the repository at this point in the history
so that zoom.extent(function(event, d) {}) receives *null, datum*
  • Loading branch information
Fil committed May 25, 2020
1 parent 74308c9 commit 4aade48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default function() {
schedule(collection, transform, point);
} else {
selection.interrupt().each(function() {
gesture(this, arguments)
gesture(this, [null, ...arguments])
.start()
.zoom(null, typeof transform === "function" ? transform.apply(this, arguments) : transform)
.end();
Expand Down

0 comments on commit 4aade48

Please sign in to comment.