1
0
Fork 0
mirror of synced 2024-09-10 06:26:02 +12:00

Handle edge case when pasting without releasing mouse

This commit is contained in:
Andrew Kingston 2024-06-23 13:10:20 +01:00
parent 878aa35335
commit 9c360a1f02
No known key found for this signature in database

View file

@ -90,7 +90,11 @@
selectedCells.actions.startSelecting(cellId)
}
const updateSelection = () => {
const updateSelection = e => {
if (e.buttons !== 1) {
selectedCells.actions.stopSelecting()
return
}
if ($focusedCellId) {
focusedCellId.set(null)
}