Commit f48305a4 authored by Sergey Luzyanin's avatar Sergey Luzyanin

fixed select bag

parent 5880c0cd
...@@ -3768,9 +3768,9 @@ CShape.prototype.selectionSetStart = function (e, x, y, slideIndex) ...@@ -3768,9 +3768,9 @@ CShape.prototype.selectionSetStart = function (e, x, y, slideIndex)
} }
} }
if(!(content.Is_TextSelectionUse() && e.ShiftKey)) if(!(content.Is_TextSelectionUse() && e.ShiftKey))
content.Selection_SetStart(tx, ty, slideIndex, e); content.Selection_SetStart(tx, ty, slideIndex - content.Get_StartPage_Relative(), e);
else else
content.Selection_SetEnd(tx, ty, slideIndex, e); content.Selection_SetEnd(tx, ty, slideIndex - content.Get_StartPage_Relative(), e);
} }
}; };
...@@ -3783,7 +3783,7 @@ CShape.prototype.selectionSetEnd = function (e, x, y, slideIndex) ...@@ -3783,7 +3783,7 @@ CShape.prototype.selectionSetEnd = function (e, x, y, slideIndex)
ty = this.invertTransformText.TransformPointY(x, y); ty = this.invertTransformText.TransformPointY(x, y);
if(!(e.Type === AscCommon.g_mouse_event_type_up && this.rightButtonFlag)) if(!(e.Type === AscCommon.g_mouse_event_type_up && this.rightButtonFlag))
{ {
content.Selection_SetEnd(tx, ty, slideIndex, e); content.Selection_SetEnd(tx, ty, slideIndex - content.Get_StartPage_Relative(), e);
} }
} }
delete this.rightButtonFlag; delete this.rightButtonFlag;
......
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