Skip to content

Commit 3127d52

Browse files
MaksimMaksim
Maksim
authored and
Maksim
committed
fix typo (add negation for isAddedWheelEvent statement)
1 parent dca3f97 commit 3127d52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plots/cartesian/dragbox.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1230,7 +1230,7 @@ function attachWheelEventHandler(element, handler) {
12301230
if(!supportsPassive) {
12311231
if(element.onwheel !== undefined) element.onwheel = handler;
12321232
else if(element.onmousewheel !== undefined) element.onmousewheel = handler;
1233-
else if(element.isAddedWheelEvent) {
1233+
else if(!element.isAddedWheelEvent) {
12341234
element.isAddedWheelEvent = true;
12351235
element.addEventListener('wheel', handler, {passive: false});
12361236
}

0 commit comments

Comments
 (0)