mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Merge remote-tracking branch 'origin/master' into aakansha-custom-elements
Update customType
This commit is contained in:
commit
3d459076fb
25 changed files with 381 additions and 229 deletions
|
@ -268,13 +268,13 @@ export const setCursorForShape = (
|
|||
if (!canvas) {
|
||||
return;
|
||||
}
|
||||
if (appState.elementType === "selection") {
|
||||
if (appState.activeTool.type === "selection") {
|
||||
resetCursor(canvas);
|
||||
} else if (appState.elementType === "eraser") {
|
||||
} else if (appState.activeTool.type === "eraser") {
|
||||
setEraserCursor(canvas, appState.theme);
|
||||
// do nothing if image tool is selected which suggests there's
|
||||
// a image-preview set as the cursor
|
||||
} else if (appState.elementType !== "image") {
|
||||
} else if (appState.activeTool.type !== "image") {
|
||||
canvas.style.cursor = CURSOR_TYPE.CROSSHAIR;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue