Commit 53b49042 authored by Alexey.Musinov's avatar Alexey.Musinov

ios select text

parent da634605
......@@ -904,6 +904,7 @@ CDrawingDocument.prototype =
AddPageSelection : function(pageIndex, x, y, w, h)
{
this.selectionMatrix = this.TextMatrix;
this.Native["DD_AddPageSelection"](pageIndex, x, y, w, h);
},
OnSelectEnd : function()
......@@ -1610,8 +1611,7 @@ CDrawingDocument.prototype =
var _isDrawings = this.LogicDocument.DrawingObjects.isPointInDrawingObjects2(pos.X, pos.Y, pos.Page, true);
if (_isDrawings)
{
if (_isDrawings) {
this.OnMouseDown(e);
}
......@@ -1662,8 +1662,9 @@ CDrawingDocument.prototype =
return;
*/
var is_drawing = this.checkMouseDown_Drawing(pos);
if (is_drawing === true)
if (is_drawing === true) {
return;
}
this.Native["DD_NeedScrollToTargetFlag"](true);
this.LogicDocumentOnMouseDown(global_mouseEvent, pos.X, pos.Y, pos.Page);
......@@ -1791,8 +1792,8 @@ CDrawingDocument.prototype =
{
if (this.SelectDrag == 1 || this.SelectDrag == 2)
{
global_mouseEvent.X += this.SelectMobileXOffset;
global_mouseEvent.Y += this.SelectMobileYOffset;
// global_mouseEvent.X += this.SelectMobileXOffset;
// global_mouseEvent.Y += this.SelectMobileYOffset;
}
var pos = null;
......@@ -2033,7 +2034,7 @@ CDrawingDocument.prototype =
__DD_ConvetToPageCoords : function(x, y, page)
{
var pos = this.Native["DD_ConvetToPageCoords"](x, y, page);
var pos = window["native"]["DD_ConvetToPageCoords"](x, y, page);
return { X : pos["X"], Y : pos["Y"], Page : pos["Page"] };
},
......
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