Fix variable type error in "setDesktopCalcViewOnZoom" function.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com> Change-Id: Idcd7040271e26bad4d04921bcb19dfb0ed45169bpull/8165/merge
parent
6f725087a1
commit
70ff910f20
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue