We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5e2b22c + 243eb21 commit 16179c1Copy full SHA for 16179c1
src/plots/cartesian/dragbox.js
@@ -1230,6 +1230,10 @@ function attachWheelEventHandler(element, handler) {
1230
if(!supportsPassive) {
1231
if(element.onwheel !== undefined) element.onwheel = handler;
1232
else if(element.onmousewheel !== undefined) element.onmousewheel = handler;
1233
+ else if(!element.isAddedWheelEvent) {
1234
+ element.isAddedWheelEvent = true;
1235
+ element.addEventListener('wheel', handler, {passive: false});
1236
+ }
1237
} else {
1238
var wheelEventName = element.onwheel !== undefined ? 'wheel' : 'mousewheel';
1239
0 commit comments