Fix variable type error in "setDesktopCalcViewOnZoom" function.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Idcd7040271e26bad4d04921bcb19dfb0ed45169b
pull/8165/merge
Gökay Şatır 2024-05-09 17:30:31 +03:00 committed by Gökay ŞATIR
parent 6f725087a1
commit 70ff910f20
1 changed files with 4 additions and 2 deletions

View File

@ -514,8 +514,10 @@ L.Map = L.Evented.extend({
var newTopLeftPx = sheetGeom.getCellRect(topLeftCell.x, topLeftCell.y, zoomScaleAbs)
.getTopLeft().divideBy(app.dpiScale);
var cursorInBounds = app.file.textCursor.visible ?
cssBounds.contains({ x: app.file.textCursor.rectangle.cX1, y: app.file.textCursor.rectangle.cY1 }) : false;
var cursorInBounds = false;
if (app.file.textCursor.visible)
cursorInBounds = app.file.viewedRectangle.containsPoint([app.file.textCursor.rectangle.x1, app.file.textCursor.rectangle.y1]);
var cursorActive = calcLayer.isCursorVisible();
if (cursorActive && cursorInBounds) {