This commit is contained in:
2024-07-22 10:42:32 +08:00
parent 6b1e74790b
commit a3f0288c92
6 changed files with 191 additions and 127 deletions

View File

@ -1433,6 +1433,10 @@ export class Grid {
});
grid.addEventListener('mousedown', e => {
if (e.target === this._var.el) {
if (e.offsetX < 0 || e.offsetX > e.target.clientWidth || e.offsetY < 0 || e.offsetY > e.target.clientHeight) {
// except scroll bars
return;
}
// cancel selections
const selectedIndexes = this._var.selectedIndexes;
if (selectedIndexes?.length > 0) {