From 1b0bffe251c66beb12abbbfdbac47e5fdafdb4d1 Mon Sep 17 00:00:00 2001 From: hristoterezov Date: Fri, 11 Aug 2017 15:25:47 +0300 Subject: [PATCH] fix(remotecontrol): Stop scroll events during the remote controll session --- modules/remotecontrol/Controller.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/remotecontrol/Controller.js b/modules/remotecontrol/Controller.js index 661b76977..f53f01b6d 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));