Update apps/pdfeditor/main/app/controller/InsTab.js

This commit is contained in:
Maxim Kadushkin
2026-02-12 10:05:17 +00:00
parent 46419f8914
commit a68b393c7f

View File

@ -423,9 +423,9 @@ define([
if(statusbarController.getZoom() != stateBeforeOpenDlg.zoom) {
me.api.zoom(stateBeforeOpenDlg.zoom);
}
if(Math.abs(currentScroll.x - stateBeforeOpenDlg.scroll.x) > 1 ||
Math.abs(currentScroll.y - stateBeforeOpenDlg.scroll.y) > 1
) {
if (Math.abs(currentScroll.x - stateBeforeOpenDlg.scroll.x) > 1 ||
Math.abs(currentScroll.y - stateBeforeOpenDlg.scroll.y) > 1)
{
me.api.scrollToXY(stateBeforeOpenDlg.scroll.x, stateBeforeOpenDlg.scroll.y);
}