Skip to content

Commit

Permalink
[temp] prevent pointer-event son button down
Browse files Browse the repository at this point in the history
  • Loading branch information
dwelle committed Oct 9, 2023
1 parent 942531e commit 15a738b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1186,6 +1186,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
Expand Down

0 comments on commit 15a738b

Please sign in to comment.