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

This commit is contained in:
hristoterezov 2017-08-11 15:25:47 +03:00 committed by Paweł Domas
parent 1782030936
commit 1b0bffe251
1 changed files with 4 additions and 0 deletions

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));