Commit 6c193d99 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

замена which на isLocked при проверке зажатой клвавиши мыши

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@53089 954022d7-b5bf-4e40-9824-e11837661b57
parent a4cf917a
......@@ -1694,7 +1694,7 @@ function ChartTextAdd(drawingObjectsController, drawingObjects, chart, textObjec
this.onMouseMove = function(e, x, y)
{
if(e.which > 0 && e.type === "mousemove")
if(e.isLocked && e.type === "mousemove")
{
this.textObject.selectionSetEnd(e, x, y);
this.textObject.updateSelectionState(this.drawingObjects.drawingDocument);
......@@ -1936,7 +1936,7 @@ function TextAddState(drawingObjectsController, drawingObjects, textObject)
this.onMouseMove = function(e, x, y)
{
if(e.which > 0 && e.type === "mousemove")
if(e.isLocked && e.type === "mousemove")
{
this.textObject.selectionSetEnd(e, x, y);
this.textObject.updateSelectionState(this.drawingObjects.drawingDocument);
......@@ -3225,7 +3225,7 @@ function ChartTextAddGroup(drawingObjectsController, drawingObjects, group, char
this.onMouseMove = function(e, x, y)
{
if(e.which > 0 && e.type === "mousemove")
if(e.isLocked && e.type === "mousemove")
{
this.textObject.selectionSetEnd(e, x, y);
this.textObject.updateSelectionState(this.drawingObjects.drawingDocument);
......@@ -3587,7 +3587,7 @@ function TextAddInGroup(drawingObjectsController, drawingObjects, group, textObj
this.onMouseMove = function(e, x, y)
{
if(e.which > 0 && e.type === "mousemove")
if(e.isLocked && e.type === "mousemove")
{
this.textObject.selectionSetEnd(e, x, y);
this.textObject.updateSelectionState(this.drawingObjects.drawingDocument);
......@@ -5081,7 +5081,7 @@ function AddPolyLine2State3(drawingObjectsController, drawingObjects, polyline)
this.onMouseMove = function(e, x, y)
{
if(e.which > 0 && e.type === "mousemove")
if(e.isLocked && e.type === "mousemove")
{
this.polyline.arrPoint[this.polyline.arrPoint.length - 1] = {x: x, y: y};
}
......
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