Fix: used deprecated onmousewheel event
https://developer.mozilla.org/en-US/docs/Web/API/Element/mousewheel_event
This commit is contained in:
parent
987760abbd
commit
ae28fcc12f
|
@ -689,7 +689,7 @@ export function resume() {
|
||||||
area.mouseup(event => dispatch(mouseClicked(EVENTS.mouseup, event)));
|
area.mouseup(event => dispatch(mouseClicked(EVENTS.mouseup, event)));
|
||||||
area.dblclick(event => dispatch(mouseClicked(EVENTS.mousedblclick, event)));
|
area.dblclick(event => dispatch(mouseClicked(EVENTS.mousedblclick, event)));
|
||||||
area.contextmenu(() => false);
|
area.contextmenu(() => false);
|
||||||
area[0].onmousewheel = event => {
|
area[0].onwheel = event => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
dispatch(mouseScrolled(event));
|
dispatch(mouseScrolled(event));
|
||||||
|
@ -739,7 +739,7 @@ export function pause() {
|
||||||
area.off('mousedown');
|
area.off('mousedown');
|
||||||
area.off('mousemove');
|
area.off('mousemove');
|
||||||
area.off('mouseup');
|
area.off('mouseup');
|
||||||
area[0].onmousewheel = undefined;
|
area[0].onwheel = undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
$(window).off('keydown');
|
$(window).off('keydown');
|
||||||
|
|
Loading…
Reference in New Issue