Procházet zdrojové kódy

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

j8
hristoterezov před 7 roky
rodič
revize
1b0bffe251
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4
    0
      modules/remotecontrol/Controller.js

+ 4
- 0
modules/remotecontrol/Controller.js Zobrazit soubor

@@ -279,11 +279,15 @@ export default class Controller extends RemoteControlParticipant {
279 279
 
280 280
         // $FlowDisableNextLine: we are sure that this._area is not null.
281 281
         this._area[0].onmousewheel = event => {
282
+            event.preventDefault();
283
+            event.stopPropagation();
282 284
             this.sendRemoteControlEndpointMessage(this._controlledParticipant, {
283 285
                 type: EVENTS.mousescroll,
284 286
                 x: event.deltaX,
285 287
                 y: event.deltaY
286 288
             });
289
+
290
+            return false;
287 291
         };
288 292
         $(window).keydown(this._onKeyPessHandler.bind(this,
289 293
             EVENTS.keydown));

Načítá se…
Zrušit
Uložit