From fed5f28bde8da998a745696291ee8131df1641fc Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Wed, 16 Mar 2022 15:27:04 +0300 Subject: [PATCH] [DE PE] fix bug 55977 --- apps/documenteditor/main/app/view/DocumentHolder.js | 3 ++- apps/presentationeditor/main/app/view/DocumentHolder.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/documenteditor/main/app/view/DocumentHolder.js b/apps/documenteditor/main/app/view/DocumentHolder.js index cdeeed126..77271e1c7 100644 --- a/apps/documenteditor/main/app/view/DocumentHolder.js +++ b/apps/documenteditor/main/app/view/DocumentHolder.js @@ -365,7 +365,8 @@ define([ addEvent(me.el, eventname, handleDocumentWheel); } - $(document).on('mousewheel', handleDocumentWheel); + !Common.Utils.isChrome ? $(document).on('mousewheel', handleDocumentWheel) : + document.addEventListener('mousewheel', handleDocumentWheel, {passive: false}); $(document).on('keydown', handleDocumentKeyDown); $(window).on('resize', onDocumentHolderResize); diff --git a/apps/presentationeditor/main/app/view/DocumentHolder.js b/apps/presentationeditor/main/app/view/DocumentHolder.js index 27fbce12f..b36dfb0d3 100644 --- a/apps/presentationeditor/main/app/view/DocumentHolder.js +++ b/apps/presentationeditor/main/app/view/DocumentHolder.js @@ -354,7 +354,8 @@ define([ addEvent(me.el, eventname, handleDocumentWheel); } - $(document).on('mousewheel', handleDocumentWheel); + !Common.Utils.isChrome ? $(document).on('mousewheel', handleDocumentWheel) : + document.addEventListener('mousewheel', handleDocumentWheel, {passive: false}); $(document).on('keydown', handleDocumentKeyDown); $(window).on('resize', onDocumentHolderResize); var viewport = PE.getController('Viewport').getView('Viewport');