FIX: control+shitf selects area
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
a5d8ee9ef0
commit
3e015bf13a
@@ -236,10 +236,17 @@ const usePointer = (options: PointerSettings): PointerEvents => {
|
||||
);
|
||||
// we continue to select the new cell
|
||||
}
|
||||
if (event.shiftKey) {
|
||||
// We are extending the selection
|
||||
options.onAreaSelecting(cell);
|
||||
options.onAreaSelected();
|
||||
} else {
|
||||
// We are selecting a single cell
|
||||
options.onCellSelected(cell, event);
|
||||
isSelecting.current = true;
|
||||
worksheetWrapper.setPointerCapture(event.pointerId);
|
||||
}
|
||||
}
|
||||
},
|
||||
[options],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user