Commit 410a85cb authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

баг с прокруткой документа при открытом фрейме с диаграммой

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57053 954022d7-b5bf-4e40-9824-e11837661b57
parent c405688d
......@@ -1514,6 +1514,7 @@ function CEditorPage(api)
}
oWordControl.StartUpdateOverlay();
var bIsSendSelectWhell = false;
if ((0 == global_mouseEvent.Button) || (undefined == global_mouseEvent.Button))
{
......@@ -1542,6 +1543,13 @@ function CEditorPage(api)
if (ret === true)
return;
if (-1 == oWordControl.m_oTimerScrollSelect)
{
// добавим это и здесь, чтобы можно было отменять во время LogicDocument.OnMouseDown
oWordControl.m_oTimerScrollSelect = setInterval(oWordControl.SelectWheel, 20);
bIsSendSelectWhell = true;
}
oWordControl.m_oDrawingDocument.NeedScrollToTargetFlag = true;
oWordControl.m_oLogicDocument.OnMouseDown(global_mouseEvent, pos.X, pos.Y, pos.Page);
oWordControl.m_oDrawingDocument.NeedScrollToTargetFlag = false;
......@@ -1557,7 +1565,7 @@ function CEditorPage(api)
else if (global_mouseEvent.Button == 2)
oWordControl.MouseDownDocumentCounter++;
if (-1 == oWordControl.m_oTimerScrollSelect)
if (!bIsSendSelectWhell && -1 == oWordControl.m_oTimerScrollSelect)
{
oWordControl.m_oTimerScrollSelect = setInterval(oWordControl.SelectWheel, 20);
}
......@@ -1750,6 +1758,30 @@ function CEditorPage(api)
oWordControl.EndUpdateOverlay();
}
this.onMouseUpMainSimple = function()
{
if (false === oThis.m_oApi.bInit_word_control)
return;
var oWordControl = oThis;
global_mouseEvent.Type = g_mouse_event_type_up;
g_bIsMouseUpLockedSend = true;
global_mouseEvent.Sender = null;
global_mouseEvent.UnLockMouse();
global_mouseEvent.IsPressed = false;
if (-1 != oWordControl.m_oTimerScrollSelect)
{
clearInterval(oWordControl.m_oTimerScrollSelect);
oWordControl.m_oTimerScrollSelect = -1;
}
}
this.onMouseUpExternal = function(x, y)
{
if (false === oThis.m_oApi.bInit_word_control)
......
......@@ -7611,6 +7611,7 @@ asc_docs_api.prototype.asc_addChartDrawingObject = function(options)
};
asc_docs_api.prototype.asc_doubleClickOnChart = function(obj)
{
this.WordControl.onMouseUpMainSimple();
this.asc_fireCallback("asc_doubleClickOnChart", obj);
};
......
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