mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: cursor being leaked outside of canvas (#3161)
This commit is contained in:
parent
f295ba98c5
commit
c77c9ce65a
8 changed files with 69 additions and 52 deletions
|
@ -18,7 +18,7 @@ import { isBindingElement } from "../element/typeChecks";
|
|||
|
||||
export const actionFinalize = register({
|
||||
name: "finalize",
|
||||
perform: (elements, appState) => {
|
||||
perform: (elements, appState, _, { canvas }) => {
|
||||
if (appState.editingLinearElement) {
|
||||
const {
|
||||
elementId,
|
||||
|
@ -126,7 +126,7 @@ export const actionFinalize = register({
|
|||
(!appState.elementLocked && appState.elementType !== "draw") ||
|
||||
!multiPointElement
|
||||
) {
|
||||
resetCursor();
|
||||
resetCursor(canvas);
|
||||
}
|
||||
return {
|
||||
elements: newElements,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue