fix: fix spreadsheet column click code
This commit is contained in:
@@ -128,7 +128,7 @@ bool hit_cell(int mx, int my, int* out_col, int* out_row) {
|
||||
|
||||
int x = ROW_HEADER_W;
|
||||
for (int c = 0; c < MAX_COLS; c++) {
|
||||
if (content_x >= x - ROW_HEADER_W && content_x < x - ROW_HEADER_W + g_col_widths[c]) {
|
||||
if (content_x >= x && content_x < x + g_col_widths[c]) {
|
||||
*out_col = c;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user