fix: pointer-events being disabled on free-draw (#2912)
This commit is contained in:
parent
ce507b0a0b
commit
15f698dc21
@ -11,7 +11,7 @@ import { CLASSES } from "../constants";
|
|||||||
import { exportCanvas } from "../data";
|
import { exportCanvas } from "../data";
|
||||||
import { importLibraryFromJSON, saveLibraryAsJSON } from "../data/json";
|
import { importLibraryFromJSON, saveLibraryAsJSON } from "../data/json";
|
||||||
import { Library } from "../data/library";
|
import { Library } from "../data/library";
|
||||||
import { showSelectedShapeActions } from "../element";
|
import { isTextElement, showSelectedShapeActions } from "../element";
|
||||||
import { NonDeletedExcalidrawElement } from "../element/types";
|
import { NonDeletedExcalidrawElement } from "../element/types";
|
||||||
import { Language, t } from "../i18n";
|
import { Language, t } from "../i18n";
|
||||||
import useIsMobile from "../is-mobile";
|
import useIsMobile from "../is-mobile";
|
||||||
@ -647,7 +647,10 @@ const LayerUI = ({
|
|||||||
) : (
|
) : (
|
||||||
<div
|
<div
|
||||||
className={clsx("layer-ui__wrapper", {
|
className={clsx("layer-ui__wrapper", {
|
||||||
"disable-pointerEvents": appState.cursorButton === "down",
|
"disable-pointerEvents":
|
||||||
|
appState.draggingElement ||
|
||||||
|
appState.resizingElement ||
|
||||||
|
(appState.editingElement && !isTextElement(appState.editingElement)),
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
{dialogs}
|
{dialogs}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user