Commit 89b44ca1 authored by Sergey Luzyanin's avatar Sergey Luzyanin

functions for mobile version

parent eac09ba4
......@@ -1245,6 +1245,42 @@ DrawingObjectsController.prototype =
},
isPointInDrawingObjects3: function(x, y)
{
var oOldState = this.curState;
this.changeCurrentState(new AscFormat.NullState(this));
var oResult, bRet = false;
this.handleEventMode = HANDLE_EVENT_MODE_CURSOR;
oResult = this.curState.onMouseDown(AscCommon.global_mouseEvent, x, y, 0);
this.handleEventMode = HANDLE_EVENT_MODE_HANDLE;
if(AscCommon.isRealObject(oResult)){
if(oResult.cursorType !== "text"){
var object = g_oTableId.Get_ById(oResult.objectId);
if(AscCommon.isRealObject(object) && (object.selected) ){
bRet = true;
}
else
{
return -1;
}
}
}
this.changeCurrentState(oOldState);
return bRet;
},
Get_SelectionBounds: function()
{
var oTargetDocContent = this.getTargetDocContent(false, true);
if(isRealObject(oTargetDocContent))
{
return oTargetDocContent.Get_SelectionBounds();
}
return null;
},
CreateDocContent: function(){
var oController = this;
if(this.selection.groupSelection){
......
......@@ -2417,15 +2417,7 @@ CGraphicObjects.prototype =
return {X: 0, Y: 0};
},
Get_SelectionBounds: function()
{
var oTargetDocContent = this.getTargetDocContent(false, true);
if(isRealObject(oTargetDocContent))
{
return oTargetDocContent.Get_SelectionBounds();
}
return null;
},
Get_SelectionBounds: DrawingObjectsController.prototype.Get_SelectionBounds,
checkCommonBounds: function(arrDrawings)
{
......
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