Skip to content

Commit 2e1dba5

Browse files
authored
fixed missing args to onZoomComplete callback (#835)
1 parent 715b6a1 commit 2e1dba5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/handlers.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,7 @@ export function wheel(chart, event) {
181181

182182
zoom(chart, amount);
183183

184-
if (onZoomComplete) {
185-
onZoomComplete();
186-
}
184+
call(onZoomComplete, [{chart}]);
187185
}
188186

189187
function addDebouncedHandler(chart, name, handler, delay) {

0 commit comments

Comments
 (0)