I do not understand how the getSelected
function works in the afterOnCellCornerDblClick
hook.
I get that it returns a list of 4 elements corresponding to the first row, first column, last row and last column selected. And usually, it works well.
My issue happens when doing the following :
- I select a single cell in column with only zeroes, on the left of a column with non-zero numbers
- I double-click on the cell corner
Then, the first and last row returned bygetSelected()
are not the same !
If the column on the right is composed of only zeroes, there is no issue.
On this jsfiddle for instance : https://jsfiddle.net/opsy3zb9/5/ if you select the A3 cell, you get [2, 0, 4, 0]
instead of (I would assume) [2, 0, 2, 0]
.
But when you select the A6 cell, you get the expected [5, 0, 5, 0]
. Empirically, I observed that it’s ok for the A6 cell, because the B column has only zeroes for the cells under the 6th row
Am I missing something here ?