fix(remotecontrol): Stop scroll events during the remote controll session
This commit is contained in:
parent
1782030936
commit
1b0bffe251
|
@ -279,11 +279,15 @@ export default class Controller extends RemoteControlParticipant {
|
||||||
|
|
||||||
// $FlowDisableNextLine: we are sure that this._area is not null.
|
// $FlowDisableNextLine: we are sure that this._area is not null.
|
||||||
this._area[0].onmousewheel = event => {
|
this._area[0].onmousewheel = event => {
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
this.sendRemoteControlEndpointMessage(this._controlledParticipant, {
|
this.sendRemoteControlEndpointMessage(this._controlledParticipant, {
|
||||||
type: EVENTS.mousescroll,
|
type: EVENTS.mousescroll,
|
||||||
x: event.deltaX,
|
x: event.deltaX,
|
||||||
y: event.deltaY
|
y: event.deltaY
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return false;
|
||||||
};
|
};
|
||||||
$(window).keydown(this._onKeyPessHandler.bind(this,
|
$(window).keydown(this._onKeyPessHandler.bind(this,
|
||||||
EVENTS.keydown));
|
EVENTS.keydown));
|
||||||
|
|
Loading…
Reference in New Issue