mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: laser pointer improvements (#7128)
This commit is contained in:
parent
4ea079eb85
commit
2523fe82e3
2 changed files with 14 additions and 0 deletions
|
@ -1155,6 +1155,9 @@ class App extends React.Component<AppProps, AppState> {
|
|||
this.state.selectionElement ||
|
||||
this.state.draggingElement ||
|
||||
this.state.resizingElement ||
|
||||
(this.state.activeTool.type === "laser" &&
|
||||
// technically we can just test on this once we make it more safe
|
||||
this.state.cursorButton === "down") ||
|
||||
(this.state.editingElement &&
|
||||
!isTextElement(this.state.editingElement))
|
||||
? POINTER_EVENTS.disabled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue