Commit 59b9e087 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

заглушка под десктопную версию (mouse wheel)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@62852 954022d7-b5bf-4e40-9824-e11837661b57
parent a675ceb2
......@@ -3835,6 +3835,12 @@ function CThumbnailsManager()
if (false === this.m_bIsScrollVisible || !oThis.m_oWordControl.m_oScrollThumbApi)
return;
if (undefined !== window["AscDesktopEditor"])
{
if (false === window["AscDesktopEditor"]["CheckNeedWheel"]())
return;
}
var delta = 0;
if (undefined != e.wheelDelta && e.wheelDelta != 0)
{
......
......@@ -1746,6 +1746,12 @@ function CEditorPage(api)
if (false === oThis.m_oApi.bInit_word_control)
return;
if (undefined !== window["AscDesktopEditor"])
{
if (false === window["AscDesktopEditor"]["CheckNeedWheel"]())
return;
}
if (oThis.DemonstrationManager.Mode)
{
if (e.preventDefault)
......
......@@ -3212,6 +3212,12 @@ function CDemonstrationManager(htmlpage)
this.onMouseWhell = function(e)
{
if (undefined !== window["AscDesktopEditor"])
{
if (false === window["AscDesktopEditor"]["CheckNeedWheel"]())
return;
}
var delta = 0;
if (undefined != e.wheelDelta)
delta = (e.wheelDelta > 0) ? -1 : 1;
......
......@@ -1963,6 +1963,12 @@ function CEditorPage(api)
if (false === oThis.m_oApi.bInit_word_control)
return;
if (undefined !== window["AscDesktopEditor"])
{
if (false === window["AscDesktopEditor"]["CheckNeedWheel"]())
return;
}
var _ctrl = false;
if (e.metaKey !== undefined)
_ctrl = e.ctrlKey || e.metaKey;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment