Commit 7b850b05 authored by Oleg Korshul's avatar Oleg Korshul Committed by Alexander.Trofimov

не прокручивался наверх документ в десктопе (вьюер)

parent 1d16458f
......@@ -20,7 +20,8 @@ var __nextFrame = (function() {
})();
var __cancelFrame = (function () {
return window.cancelRequestAnimationFrame ||
return window.cancelAnimationFrame ||
window.cancelRequestAnimationFrame ||
window.webkitCancelAnimationFrame ||
window.webkitCancelRequestAnimationFrame ||
window.mozCancelRequestAnimationFrame ||
......
......@@ -1499,6 +1499,14 @@ function CEditorPage(api)
positionMinY = (oWordControl.m_oMainContent.AbsolutePosition.T + oWordControl.m_oTopRuler_horRuler.AbsolutePosition.B) * g_dKoef_mm_to_pix +
oWordControl.Y;
// если находимся в самом верху (без тулбара) - то наверх не будем скроллиться
// делаем заглушку
var minPosY = 20;
if (oThis.bIsRetinaSupport)
minPosY *= 2;
if (positionMinY < minPosY)
positionMinY = minPosY;
var positionMaxY = oWordControl.m_oMainContent.AbsolutePosition.B * g_dKoef_mm_to_pix + oWordControl.Y;
var scrollYVal = 0;
......
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