Commit 5cf688d9 authored by Oleg Korshul's avatar Oleg Korshul

new mobile version (big changes)

parent b590da6a
This diff is collapsed.
...@@ -2179,6 +2179,9 @@ function CDrawingDocument() ...@@ -2179,6 +2179,9 @@ function CDrawingDocument()
{ {
this.m_lCountCalculatePages = pageCount; this.m_lCountCalculatePages = pageCount;
//console.log("start " + this.m_lCountCalculatePages); //console.log("start " + this.m_lCountCalculatePages);
if (this.m_oWordControl && this.m_oWordControl.MobileTouchManager)
this.m_oWordControl.MobileTouchManager.ClearContextMenu();
} }
this.OnRepaintPage = function (index) this.OnRepaintPage = function (index)
...@@ -6067,7 +6070,7 @@ function CDrawingDocument() ...@@ -6067,7 +6070,7 @@ function CDrawingDocument()
this.OnSelectEnd = function () this.OnSelectEnd = function ()
{ {
if (this.m_oWordControl && this.m_oWordControl.MobileTouchManager) if (this.m_oWordControl && this.m_oWordControl.MobileTouchManager)
this.m_oWordControl.MobileTouchManager.CheckSelectEnd(false); this.m_oWordControl.MobileTouchManager.CheckSelectRects();
} }
// mouse events // mouse events
......
...@@ -3121,6 +3121,9 @@ function CEditorPage(api) ...@@ -3121,6 +3121,9 @@ function CEditorPage(api)
this.OnCalculatePagesPlace = function() this.OnCalculatePagesPlace = function()
{ {
if (this.MobileTouchManager && !this.MobileTouchManager.IsWorkedPosition())
this.MobileTouchManager.ClearContextMenu();
var canvas = this.m_oEditor.HtmlElement; var canvas = this.m_oEditor.HtmlElement;
if (null == canvas) if (null == canvas)
return; return;
......
...@@ -1739,6 +1739,9 @@ background-repeat: no-repeat;\ ...@@ -1739,6 +1739,9 @@ background-repeat: no-repeat;\
this.sync_TextPosition(TextPr.Position); this.sync_TextPosition(TextPr.Position);
this.sync_TextLangCallBack(TextPr.Lang); this.sync_TextLangCallBack(TextPr.Lang);
this.sync_TextColor(TextPr); this.sync_TextColor(TextPr);
if (this.isMobileVersion)
this.sendEvent("asc_onTextShd", new Asc.asc_CParagraphShd(TextPr.Shd));
} }
}; };
asc_docs_api.prototype.UpdateParagraphProp = function(ParaPr) asc_docs_api.prototype.UpdateParagraphProp = function(ParaPr)
......
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