Skip to content

Commit

Permalink
in wheeled also, send args
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil committed May 28, 2020
1 parent b56cc7e commit 82b6e36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zoom.js
Expand Up @@ -230,9 +230,9 @@ export default function() {
}
};

function wheeled(event) {
function wheeled(event, ...args) {
if (!filter.apply(this, arguments)) return;
var g = gesture(this, arguments).event(event),
var g = gesture(this, args).event(event),
t = this.__zoom,
k = Math.max(scaleExtent[0], Math.min(scaleExtent[1], t.k * Math.pow(2, wheelDelta.apply(this, arguments)))),
p = pointer(event);
Expand Down

0 comments on commit 82b6e36

Please sign in to comment.