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

This commit is contained in:
hristoterezov
2017-08-14 09:13:38 +01:00
committed by Paweł Domas
parent 1782030936
commit 1b0bffe251
+4
View File
@@ -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));