fix(mouse): fix mouse drag position with winbar or border in multigrid

This commit is contained in:
zeertzjq
2022-05-19 19:16:17 +08:00
parent 0997884ae2
commit f971536f46
2 changed files with 275 additions and 10 deletions

View File

@@ -273,6 +273,9 @@ retnomove:
if (grid == 0) {
row -= curwin->w_grid_alloc.comp_row + curwin->w_grid.row_offset;
col -= curwin->w_grid_alloc.comp_col + curwin->w_grid.col_offset;
} else if (grid != DEFAULT_GRID_HANDLE) {
row -= curwin->w_grid.row_offset;
col -= curwin->w_grid.col_offset;
}
// When clicking beyond the end of the window, scroll the screen.