Commit 63d5c00a authored by Alexander.Trofimov's avatar Alexander.Trofimov

check idle in spreadsheets

parent 26d9821e
No related merge requests found
This diff is collapsed.
...@@ -1966,6 +1966,7 @@ ...@@ -1966,6 +1966,7 @@
if (lockDraw || this.model.workbook.bCollaborativeChanges || window['IS_NATIVE_EDITOR']) { if (lockDraw || this.model.workbook.bCollaborativeChanges || window['IS_NATIVE_EDITOR']) {
return this; return this;
} }
this.handlers.trigger("checkLastWork");
this._clean(); this._clean();
this._drawCorner(); this._drawCorner();
this._drawColumnHeaders(/*drawingCtx*/ undefined); this._drawColumnHeaders(/*drawingCtx*/ undefined);
...@@ -3736,6 +3737,8 @@ ...@@ -3736,6 +3737,8 @@
return; return;
} }
this.handlers.trigger("checkLastWork");
// set clipping rect to cells area // set clipping rect to cells area
var ctx = this.overlayCtx; var ctx = this.overlayCtx;
ctx.save().beginPath() ctx.save().beginPath()
...@@ -6031,6 +6034,7 @@ ...@@ -6031,6 +6034,7 @@
}; };
WorksheetView.prototype.getCursorTypeFromXY = function (x, y, isViewerMode) { WorksheetView.prototype.getCursorTypeFromXY = function (x, y, isViewerMode) {
this.handlers.trigger("checkLastWork");
var res, c, r, f, i, offsetX, offsetY, cellCursor; var res, c, r, f, i, offsetX, offsetY, cellCursor;
var sheetId = this.model.getId(), userId, lockRangePosLeft, lockRangePosTop, lockInfo, oHyperlink; var sheetId = this.model.getId(), userId, lockRangePosLeft, lockRangePosTop, lockInfo, oHyperlink;
var widthDiff = 0, heightDiff = 0, isLocked = false, target = c_oTargetType.Cells, row = -1, col = -1, isSelGraphicObject, isNotFirst; var widthDiff = 0, heightDiff = 0, isLocked = false, target = c_oTargetType.Cells, row = -1, col = -1, isSelGraphicObject, isNotFirst;
......
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