Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(remotecontrol): Stop scroll events during the remote controll session

hristoterezov1b0bffe251c6
diff --git a/modules/remotecontrol/Controller.js b/modules/remotecontrol/Controller.js
index 661b76977a..f53f01b6d0 100644
--- a/modules/remotecontrol/Controller.js
+++ b/modules/remotecontrol/Controller.js
@@ -279,11 +279,15 @@ export default class Controller extends RemoteControlParticipant {
// $FlowDisableNextLine: we are sure that this._area is not null.
this._area[0].onmousewheel = event => {
+ event.preventDefault();
+ event.stopPropagation();
this.sendRemoteControlEndpointMessage(this._controlledParticipant, {
type: EVENTS.mousescroll,
x: event.deltaX,
y: event.deltaY
});
+
+ return false;
};
$(window).keydown(this._onKeyPessHandler.bind(this,
EVENTS.keydown));