Commit 0ae7233d 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@61481 954022d7-b5bf-4e40-9824-e11837661b57
parent 5768fc56
......@@ -571,7 +571,7 @@ function CDrawingDocument()
this.TargetShowNeedFlag = false;
this.m_bIsSelection = false;
this.m_bIsMouseLock = false;
this.m_bIsMouseLockDocument = false;
this.IsKeyDownButNoPress = false;
this.bIsUseKeyPress = false;
......@@ -1409,23 +1409,23 @@ CDrawingDocument.prototype =
LogicDocumentOnMouseDown : function(e, x, y, page)
{
if (this.m_bIsMouseLock)
if (this.m_bIsMouseLockDocument)
{
this.LogicDocument.OnMouseUp(e, x, y, page);
this.m_bIsMouseLock = false;
this.m_bIsMouseLockDocument = false;
}
this.LogicDocument.OnMouseDown(e, x, y, page);
this.m_bIsMouseLock = true;
this.m_bIsMouseLockDocument = true;
},
LogicDocumentOnMouseUp : function(e, x, y, page)
{
if (!this.m_bIsMouseLock)
if (!this.m_bIsMouseLockDocument)
{
this.LogicDocument.OnMouseDown(e, x, y, page);
this.m_bIsMouseLock = true;
this.m_bIsMouseLockDocument = true;
}
this.LogicDocument.OnMouseUp(e, x, y, page);
this.m_bIsMouseLock = false;
this.m_bIsMouseLockDocument = false;
},
OnCheckMouseDown : function(e)
......@@ -1633,7 +1633,7 @@ CDrawingDocument.prototype =
return;
this.Native["DD_NeedScrollToTargetFlag"](true);
this.LogicDocumentOnMouseDown.OnMouseDown(global_mouseEvent, pos.X, pos.Y, pos.Page);
this.LogicDocumentOnMouseDown(global_mouseEvent, pos.X, pos.Y, pos.Page);
this.Native["DD_NeedScrollToTargetFlag"](false);
}
......
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