Commit 8c98e7fe authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix find cell

parent 02136888
...@@ -5813,7 +5813,7 @@ ...@@ -5813,7 +5813,7 @@
* @private * @private
*/ */
WorksheetView.prototype._findColUnderCursor = function (x, canReturnNull, half) { WorksheetView.prototype._findColUnderCursor = function (x, canReturnNull, half) {
var activeCellCol = this._getSelection().activeCell.col; var activeCellCol = half ? this._getSelection().activeCell.col : -1;
var dx = 0; var dx = 0;
var c = this.visibleRange.c1; var c = this.visibleRange.c1;
var offset = this.cols[c].left - this.cellsLeft; var offset = this.cols[c].left - this.cellsLeft;
...@@ -5880,7 +5880,7 @@ ...@@ -5880,7 +5880,7 @@
* @private * @private
*/ */
WorksheetView.prototype._findRowUnderCursor = function (y, canReturnNull, half) { WorksheetView.prototype._findRowUnderCursor = function (y, canReturnNull, half) {
var activeCellRow = this._getSelection().activeCell.row; var activeCellRow = half ? this._getSelection().activeCell.row : -1;
var dy = 0; var dy = 0;
var r = this.visibleRange.r1; var r = this.visibleRange.r1;
var offset = this.rows[r].top - this.cellsTop; var offset = this.rows[r].top - this.cellsTop;
......
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