Handle edge case when pasting without releasing mouse
This commit is contained in:
parent
878aa35335
commit
9c360a1f02
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue