Commit 6d8fb223 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov
parent e107201c
......@@ -356184,6 +356184,7 @@ function CDrawingDocument()
this.SelectRect1 = null;
this.SelectRect2 = null;
this.SelectClearLock = false;
this.SelectMobileXOffset = 0;
this.SelectMobileYOffset = 0;
......@@ -356470,6 +356471,12 @@ CDrawingDocument.prototype =
},
SelectClear : function()
{
if (!this.SelectClearLock)
{
this.SelectDrag = -1;
this.SelectRect1 = null;
this.SelectRect2 = null;
}
this.Native["DD_SelectClear"]();
},
AddPageSelection : function(pageIndex, x, y, w, h)
......@@ -356971,8 +356978,8 @@ CDrawingDocument.prototype =
if (this.InlineTextTrackEnabled && null != this.InlineTextTrack)
{
this.AutoShapesTrack.DrawInlineMoveCursor(this.InlineTextTrackPage,
this.InlineTextTrack.X, this.InlineTextTrack.Y, this.InlineTextTrack.Height,
this.AutoShapesTrack.SetCurrentPage(this.InlineTextTrackPage);
this.AutoShapesTrack.DrawInlineMoveCursor(this.InlineTextTrack.X, this.InlineTextTrack.Y, this.InlineTextTrack.Height,
this.InlineTextTrack.transform);
}
......@@ -357040,6 +357047,7 @@ CDrawingDocument.prototype =
if (Math.abs(pos.X - _circlePos1_x) < _selectCircleEpsMM && Math.abs(pos.Y - _circlePos1_y) < _selectCircleEpsMM)
{
this.SelectClearLock = true;
this.SelectDrag = 1;
this.LogicDocument.Cursor_MoveRight();
......@@ -357070,10 +357078,12 @@ CDrawingDocument.prototype =
this.SelectMobileYOffset = (ret.Y + ret2.Y) - global_mouseEvent.Y;
this.OnMouseMove(e);
this.SelectClearLock = false;
}
if (Math.abs(pos.X - _circlePos2_x) < _selectCircleEpsMM && Math.abs(pos.Y - _circlePos2_y) < _selectCircleEpsMM)
{
this.SelectClearLock = true;
this.SelectDrag = 2;
this.LogicDocument.Cursor_MoveLeft();
......@@ -357105,6 +357115,7 @@ CDrawingDocument.prototype =
this.SelectMobileYOffset = (ret.Y - ret2.Y) - global_mouseEvent.Y;
this.OnMouseMove(e);
this.SelectClearLock = false;
}
if (this.SelectDrag != -1)
......@@ -357113,7 +357124,7 @@ CDrawingDocument.prototype =
if (true)
{
// проверям на попадание в графические объекты (грубо говоря - треки)
// проверям н]а попадание в графические объекты (грубо говоря - треки)
if (!this.IsViewMode)
{
global_mouseEvent.KoefPixToMM = 5;
......@@ -358251,7 +358262,8 @@ CDrawingDocument.prototype =
var _near = this.TableOutlineDr.InlinePos;
this.AutoShapesTrack.DrawInlineMoveCursor(_near.Page, _near.X, _near.Y, _near.Height, _near.transform);
this.AutoShapesTrack.SetCurrentPage(_near.Page);
this.AutoShapesTrack.DrawInlineMoveCursor(_near.X, _near.Y, _near.Height, _near.transform);
}
},
......@@ -360889,9 +360901,10 @@ CAutoshapeTrack.prototype =
SetCurrentPage : function(nPageIndex)
{
if (nPageIndex == this.PageIndex)
return;
//if (nPageIndex == this.PageIndex)
// return;
this.PageIndex = nPageIndex;
this.Native["DD_SetCurrentPage"](nPageIndex);
},
......@@ -360958,15 +360971,15 @@ CAutoshapeTrack.prototype =
this.Native["DD_DrawEditWrapPointsTrackLines"](points);
},
DrawInlineMoveCursor : function(page, x, y, h, m)
DrawInlineMoveCursor : function(x, y, h, m)
{
if (!m)
{
this.Native["DD_DrawInlineMoveCursor"](page, x, y, h);
this.Native["DD_DrawInlineMoveCursor"](this.PageIndex, x, y, h);
}
else
{
this.Native["DD_DrawInlineMoveCursor"](page, x, y, h, m.sx, m.shy, m.shx, m.sy, m.tx, m.ty);
this.Native["DD_DrawInlineMoveCursor"](this.PageIndex, x, y, h, m.sx, m.shy, m.shx, m.sy, m.tx, m.ty);
}
},
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