From ae28fcc12ff306f3305d6138109e5a02f4958ec2 Mon Sep 17 00:00:00 2001 From: Christoph Wiechert Date: Mon, 29 Mar 2021 13:02:39 +0200 Subject: [PATCH] Fix: used deprecated onmousewheel event https://developer.mozilla.org/en-US/docs/Web/API/Element/mousewheel_event --- react/features/remote-control/actions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/react/features/remote-control/actions.js b/react/features/remote-control/actions.js index 391baf3ef..c924c18d6 100644 --- a/react/features/remote-control/actions.js +++ b/react/features/remote-control/actions.js @@ -689,7 +689,7 @@ export function resume() { area.mouseup(event => dispatch(mouseClicked(EVENTS.mouseup, event))); area.dblclick(event => dispatch(mouseClicked(EVENTS.mousedblclick, event))); area.contextmenu(() => false); - area[0].onmousewheel = event => { + area[0].onwheel = event => { event.preventDefault(); event.stopPropagation(); dispatch(mouseScrolled(event)); @@ -739,7 +739,7 @@ export function pause() { area.off('mousedown'); area.off('mousemove'); area.off('mouseup'); - area[0].onmousewheel = undefined; + area[0].onwheel = undefined; } $(window).off('keydown');