Skip to content

Commit 7796886

Browse files
authored
Fixes invalid context onZoomComplete invocation (#504)
1 parent 91c34fe commit 7796886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/handlers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export function mouseUp(chart, event) {
111111
zoomRect(chart, {x: rect.left, y: rect.top}, {x: rect.right, y: rect.bottom}, 'zoom');
112112

113113
setTimeout(() => (state.dragging = false), 500);
114-
call(zoomOptions.onZoomComplete, [chart]);
114+
call(zoomOptions.onZoomComplete, [{chart}]);
115115
}
116116

117117
function wheelPreconditions(chart, event, zoomOptions) {

0 commit comments

Comments
 (0)