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

ios select text

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