We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 253d01a commit 46926eeCopy full SHA for 46926ee
src/plugin.js
@@ -40,11 +40,10 @@ export default {
40
chart.resetZoom = (transition) => resetZoom(chart, transition);
41
},
42
43
- beforeEvent(chart, args) {
+ beforeEvent(chart) {
44
const state = getState(chart);
45
- const type = args.event.type;
46
- if ((type === 'click' || type === 'mouseup') && (state.panning || state.dragging)) {
47
- // cancel the click/mouseup event at pan/zoom end
+ if (state.panning || state.dragging) {
+ // cancel any event handling while panning or dragging
48
return false;
49
}
50
0 commit comments