Commit 5e6d67f3 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

Bug 27869

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60046 954022d7-b5bf-4e40-9824-e11837661b57
parent 2a88236f
......@@ -208,6 +208,8 @@ function CEditorPage(api)
this.DrawingFreeze = false;
this.ZoomFreePageNum = -1;
this.m_bIsIE = AscBrowser.isIE;
// сплиттеры (для табнейлов и для заметок)
......@@ -799,6 +801,7 @@ function CEditorPage(api)
var lCurPage = oWordControl.m_oDrawingDocument.SlideCurrent;
this.GoToPage(lCurPage);
this.ZoomFreePageNum = lCurPage;
if (-1 != lCurPage)
{
......@@ -810,6 +813,8 @@ function CEditorPage(api)
var lPosition = parseInt(dPosition * oWordControl.m_oScrollVerApi.getMaxScrolledY());
oWordControl.m_oScrollVerApi.scrollToY(lPosition);
this.ZoomFreePageNum = -1;
oWordControl.m_oApi.sync_zoomChangeCallback(this.m_nZoomValue, type);
oWordControl.m_bIsUpdateTargetNoAttack = true;
oWordControl.m_bIsRePaintOnScroll = true;
......@@ -2014,22 +2019,33 @@ function CEditorPage(api)
}
var lNumSlide = ((scrollPositionY / this.m_dDocumentPageHeight) + 0.01) >> 0; // 0.01 - ошибка округления!!
if (lNumSlide != this.m_oDrawingDocument.SlideCurrent)
var _can_change_slide = true;
if (-1 != this.ZoomFreePageNum && this.ZoomFreePageNum == this.m_oDrawingDocument.SlideCurrent)
_can_change_slide = false;
if (_can_change_slide)
{
if (this.IsGoToPageMAXPosition)
if (lNumSlide != this.m_oDrawingDocument.SlideCurrent)
{
if (lNumSlide >= this.m_oDrawingDocument.SlideCurrent)
this.IsGoToPageMAXPosition = false;
}
if (this.IsGoToPageMAXPosition)
{
if (lNumSlide >= this.m_oDrawingDocument.SlideCurrent)
this.IsGoToPageMAXPosition = false;
}
this.GoToPage(lNumSlide);
return;
this.GoToPage(lNumSlide);
return;
}
else if (this.SlideScrollMAX < scrollPositionY)
{
this.IsGoToPageMAXPosition = false;
this.GoToPage(this.m_oDrawingDocument.SlideCurrent + 1);
return;
}
}
else if (this.SlideScrollMAX < scrollPositionY)
else
{
this.IsGoToPageMAXPosition = false;
this.GoToPage(this.m_oDrawingDocument.SlideCurrent + 1);
return;
this.GoToPage(this.ZoomFreePageNum);
}
}
else
......
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